Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion engine/execution/storehouse/executing_block_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion fvm/evm/offchain/blocks/blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion fvm/storage/snapshot/snapshot_tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion integration/client/execution_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion model/flow/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion network/stub/hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down