add guard to DB initialization

This commit is contained in:
Etan Kissling 2024-07-25 21:36:10 +02:00
parent a5d2cfea79
commit a0cd63697d
No known key found for this signature in database
GPG Key ID: B21DA824C5A3D03D
1 changed files with 1 additions and 0 deletions

View File

@ -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