diff --git a/erigon-lib/kv/tables.go b/erigon-lib/kv/tables.go index 1920e06331a..505023cc39c 100644 --- a/erigon-lib/kv/tables.go +++ b/erigon-lib/kv/tables.go @@ -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" diff --git a/turbo/snapshotsync/caplin_state_snapshots.go b/turbo/snapshotsync/caplin_state_snapshots.go index 48bc93cc693..8cd6f6c1350 100644 --- a/turbo/snapshotsync/caplin_state_snapshots.go +++ b/turbo/snapshotsync/caplin_state_snapshots.go @@ -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 {