Skip to content

Commit

Permalink
chore: fix struct field name in comment (#13176)
Browse files Browse the repository at this point in the history
Signed-off-by: goodfirm <fanyishang@yeah.net>
  • Loading branch information
goodfirm authored Jan 3, 2025
1 parent 5dc6650 commit 2f96df3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 2f96df3

Please sign in to comment.