Skip to content

Commit 0fa85d2

Browse files
authored
chore: fix function names in comment (#9987)
Signed-off-by: fuyangpengqi <[email protected]>
1 parent de39ac4 commit 0fa85d2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

accounts/abi/type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ func (t Type) pack(v reflect.Value) ([]byte, error) {
350350
}
351351
}
352352

353-
// requireLengthPrefix returns whether the type requires any sort of length
353+
// requiresLengthPrefix returns whether the type requires any sort of length
354354
// prefixing.
355355
func (t Type) requiresLengthPrefix() bool {
356356
return t.T == StringTy || t.T == BytesTy || t.T == SliceTy

cl/antiquary/beacon_states_collector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ func (i *beaconStatesCollector) close() {
350350
i.effectiveBalancesDumpCollector.Close()
351351
}
352352

353-
// antiquateFullSlashings goes on mdbx as it is full of common repeated patter always and thus fits with 16KB pages.
353+
// antiquateFullUint64List goes on mdbx as it is full of common repeated patter always and thus fits with 16KB pages.
354354
func antiquateFullUint64List(collector *etl.Collector, slot uint64, raw []byte, buffer *bytes.Buffer, compressor *zstd.Encoder) error {
355355
buffer.Reset()
356356
compressor.Reset(buffer)

cl/persistence/beacon_indicies/indicies.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func ReadHighestFinalized(tx kv.Tx) (uint64, error) {
5050
return base_encoding.Decode64FromBytes4(val), nil
5151
}
5252

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

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

0 commit comments

Comments
 (0)