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 function names in comment #9987

Merged
merged 1 commit into from
Apr 23, 2024
Merged
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 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
Loading