Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix struct field name in comment #13176

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type syncContributionKey struct {
}

type syncContributionPoolImpl struct {
// syncContributionPool is a map of sync contributions, indexed by slot, subcommittee index and block root.
// syncContributionPoolForBlocks is a map of sync contributions, indexed by slot, subcommittee index and block root.
syncContributionPoolForBlocks map[syncContributionKey]*cltypes.Contribution // Used for block publishing.
syncContributionPoolForAggregates map[syncContributionKey]*cltypes.Contribution // Used for sync committee messages aggregation.
beaconCfg *clparams.BeaconChainConfig
Expand Down
2 changes: 1 addition & 1 deletion turbo/snapshotsync/freezeblocks/beacon_block_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var decompressorPool = sync.Pool{
}

type BeaconSnapshotReader interface {
// ReadBlock reads the block at the given slot.
// ReadBlockBySlot reads the block at the given slot.
// If the block is not present, it returns nil.
ReadBlockBySlot(ctx context.Context, tx kv.Tx, slot uint64) (*cltypes.SignedBeaconBlock, error)
ReadBlockByRoot(ctx context.Context, tx kv.Tx, blockRoot libcommon.Hash) (*cltypes.SignedBeaconBlock, error)
Expand Down