Skip to content

Commit

Permalink
chore: fix function names in comment (#9987)
Browse files Browse the repository at this point in the history
Signed-off-by: fuyangpengqi <[email protected]>
  • Loading branch information
fuyangpengqi authored Apr 23, 2024
1 parent de39ac4 commit 0fa85d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion accounts/abi/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func (t Type) pack(v reflect.Value) ([]byte, error) {
}
}

// requireLengthPrefix returns whether the type requires any sort of length
// requiresLengthPrefix returns whether the type requires any sort of length
// prefixing.
func (t Type) requiresLengthPrefix() bool {
return t.T == StringTy || t.T == BytesTy || t.T == SliceTy
Expand Down
2 changes: 1 addition & 1 deletion cl/antiquary/beacon_states_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func (i *beaconStatesCollector) close() {
i.effectiveBalancesDumpCollector.Close()
}

// antiquateFullSlashings goes on mdbx as it is full of common repeated patter always and thus fits with 16KB pages.
// antiquateFullUint64List goes on mdbx as it is full of common repeated patter always and thus fits with 16KB pages.
func antiquateFullUint64List(collector *etl.Collector, slot uint64, raw []byte, buffer *bytes.Buffer, compressor *zstd.Encoder) error {
buffer.Reset()
compressor.Reset(buffer)
Expand Down
4 changes: 2 additions & 2 deletions cl/persistence/beacon_indicies/indicies.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func ReadHighestFinalized(tx kv.Tx) (uint64, error) {
return base_encoding.Decode64FromBytes4(val), nil
}

// WriteBlockRootSlot writes the slot associated with a block root.
// WriteHeaderSlot writes the slot associated with a block root.
func WriteHeaderSlot(tx kv.RwTx, blockRoot libcommon.Hash, slot uint64) error {
return tx.Put(kv.BlockRootToSlot, blockRoot[:], base_encoding.Encode64ToBytes4(slot))
}
Expand All @@ -68,7 +68,7 @@ func ReadBlockSlotByBlockRoot(tx kv.Tx, blockRoot libcommon.Hash) (*uint64, erro
return slot, nil
}

// WriteBlockRootSlot writes the slot associated with a block root.
// WriteStateRoot writes the slot associated with a block root.
func WriteStateRoot(tx kv.RwTx, blockRoot libcommon.Hash, stateRoot libcommon.Hash) error {
if err := tx.Put(kv.BlockRootToStateRoot, blockRoot[:], stateRoot[:]); err != nil {
return err
Expand Down

0 comments on commit 0fa85d2

Please sign in to comment.