Skip to content

Commit

Permalink
tiny refactor (#12909)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudeepdino008 authored Nov 29, 2024
1 parent 9474ca4 commit 59e274c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion erigon-lib/kv/tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ const (

// Erigon-CL Objects

// [slot] => [signature + block without execution payload]
// [slot + block root] => [signature + block without execution payload]
BeaconBlocks = "BeaconBlock"

EffectiveBalancesDump = "EffectiveBalancesDump"
Expand Down
2 changes: 1 addition & 1 deletion turbo/snapshotsync/caplin_state_snapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func getKvGetterForStateTable(db kv.RoDB, tableName string) KeyValueGetter {
var err error
if err := db.View(context.TODO(), func(tx kv.Tx) error {
key = base_encoding.Encode64ToBytes4(numId)
value, err = tx.GetOne(tableName, base_encoding.Encode64ToBytes4(numId))
value, err = tx.GetOne(tableName, key)
value = libcommon.Copy(value)
return err
}); err != nil {
Expand Down

0 comments on commit 59e274c

Please sign in to comment.