From a0cd63697ddeffb99ab59d33c59ccfd82c38d0eb Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Thu, 25 Jul 2024 21:36:10 +0200 Subject: [PATCH] add guard to DB initialization --- beacon_chain/beacon_chain_db.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/beacon_chain/beacon_chain_db.nim b/beacon_chain/beacon_chain_db.nim index 3fbfc83b7..36bf1e414 100644 --- a/beacon_chain/beacon_chain_db.nim +++ b/beacon_chain/beacon_chain_db.nim @@ -562,6 +562,7 @@ proc new*(T: type BeaconChainDB, var blobs: array[BlobFork, KvStoreRef] if cfg.DENEB_FORK_EPOCH != FAR_FUTURE_EPOCH: blobs[BlobFork.Deneb] = kvStore db.openKvStore("deneb_blobs").expectDb() + static: doAssert BlobFork.high == BlobFork.Deneb # Versions prior to 1.4.0 (altair) stored validators in `immutable_validators` # which stores validator keys in compressed format - this is