diff --git a/engine/execution/storehouse/executing_block_snapshot.go b/engine/execution/storehouse/executing_block_snapshot.go index e9e9b97c32b..5ba3ce2526e 100644 --- a/engine/execution/storehouse/executing_block_snapshot.go +++ b/engine/execution/storehouse/executing_block_snapshot.go @@ -53,7 +53,7 @@ func (s *ExecutingBlockSnapshot) getFromUpdates(id flow.RegisterID) (flow.Regist return value, ok } -// Extend returns a new storage snapshot at the same block but but for a different state commitment, +// Extend returns a new storage snapshot at the same block but for a different state commitment, // which contains the given registerUpdates // Usually it's used to create a new storage snapshot at the next executed collection. // The registerUpdates contains the register updates at the executed collection. diff --git a/fvm/evm/offchain/blocks/blocks.go b/fvm/evm/offchain/blocks/blocks.go index 35b8c39638f..455790b9135 100644 --- a/fvm/evm/offchain/blocks/blocks.go +++ b/fvm/evm/offchain/blocks/blocks.go @@ -83,7 +83,7 @@ func (b *Blocks) PushBlockMeta( return b.storeBlockMetaData(meta) } -// PushBlockHash pushes a new block block hash into the storage +// PushBlockHash pushes a new block hash into the storage func (b *Blocks) PushBlockHash( height uint64, hash gethCommon.Hash, diff --git a/fvm/storage/snapshot/snapshot_tree.go b/fvm/storage/snapshot/snapshot_tree.go index 7c91b9a5c1a..cc57843b3ae 100644 --- a/fvm/storage/snapshot/snapshot_tree.go +++ b/fvm/storage/snapshot/snapshot_tree.go @@ -28,7 +28,7 @@ func NewSnapshotTree(base StorageSnapshot) SnapshotTree { } // Append returns a new tree with updates from the execution snapshot "applied" -// to the original original tree. +// to the original tree. func (tree SnapshotTree) Append( update *ExecutionSnapshot, ) SnapshotTree { diff --git a/integration/client/execution_client.go b/integration/client/execution_client.go index d03e8d5e4fd..52ea73f9deb 100644 --- a/integration/client/execution_client.go +++ b/integration/client/execution_client.go @@ -15,7 +15,7 @@ type ExecutionClient struct { close func() error } -// NewExecutionClient initializes an execution client client with the default gRPC provider. +// NewExecutionClient initializes an execution client with the default gRPC provider. // // An error will be returned if the host is unreachable. func NewExecutionClient(addr string) (*ExecutionClient, error) { diff --git a/model/flow/chain.go b/model/flow/chain.go index 7cc4df23244..2ac2b219c1b 100644 --- a/model/flow/chain.go +++ b/model/flow/chain.go @@ -10,7 +10,7 @@ import ( // A ChainID is a unique identifier for a specific Flow network instance. // -// Chain IDs are used used to prevent replay attacks and to support network-specific address generation. +// Chain IDs are used to prevent replay attacks and to support network-specific address generation. type ChainID string type ChainIDList []ChainID diff --git a/network/stub/hub.go b/network/stub/hub.go index 91a50940545..5ba0e6a4fc5 100644 --- a/network/stub/hub.go +++ b/network/stub/hub.go @@ -47,7 +47,7 @@ func (h *Hub) DeliverAllEventually(t *testing.T, condition func() bool) { h.DeliverAllEventuallyUntil(t, condition, time.Second*10, time.Millisecond*500) } -// DeliverAllEventuallyUntil attempts attempts on delivery of all the buffered messages in the Network instances +// DeliverAllEventuallyUntil attempts on delivery of all the buffered messages in the Network instances // attached to this instance of Hub. Once the delivery is done, it evaluates and returns the // condition function. It fails if delivery of all buffered messages in the Network instances // attached to this Hub is not getting done within `waitFor` time interval.