Skip to content

Commit

Permalink
fix db util
Browse files Browse the repository at this point in the history
  • Loading branch information
agnxsh committed Oct 21, 2024
1 parent eec96e6 commit 86abaa7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion beacon_chain/beacon_chain_db.nim
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import
./spec/[deposit_snapshots,
eth2_ssz_serialization,
eth2_merkleization,
eip7594_helpers,
forks,
presets,
state_transition],
Expand Down
3 changes: 3 additions & 0 deletions tests/testdbutil.nim
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ proc makeTestDB*(
flags: UpdateFlags = {},
cfg = defaultRuntimeConfig): BeaconChainDB =
# Blob support requires DENEB_FORK_EPOCH != FAR_FUTURE_EPOCH
# Data column support requires ELECTRA_FORK_EPOCH != FAR_FUTURE_EPOCH
var cfg = cfg
if cfg.CAPELLA_FORK_EPOCH == FAR_FUTURE_EPOCH:
cfg.CAPELLA_FORK_EPOCH = 90000.Epoch
if cfg.DENEB_FORK_EPOCH == FAR_FUTURE_EPOCH:
cfg.DENEB_FORK_EPOCH = 100000.Epoch
if cfg.ELECTRA_FORK_EPOCH == FAR_FUTURE_EPOCH:
cfg.ELECTRA_FORK_EPOCH = 110000.Epoch

var genState = (ref ForkedHashedBeaconState)(
kind: ConsensusFork.Phase0,
Expand Down

0 comments on commit 86abaa7

Please sign in to comment.