test for newest fork first (#2891)
This commit is contained in:
parent
c95d4f31ed
commit
5670d58155
|
@ -797,7 +797,7 @@ proc containsBlockAltair*(db: BeaconChainDB, key: Eth2Digest): bool =
|
||||||
db.altairBlocks.contains(key.data).expectDb()
|
db.altairBlocks.contains(key.data).expectDb()
|
||||||
|
|
||||||
proc containsBlock*(db: BeaconChainDB, key: Eth2Digest): bool =
|
proc containsBlock*(db: BeaconChainDB, key: Eth2Digest): bool =
|
||||||
db.containsBlockPhase0(key) or db.containsBlockAltair(key)
|
db.containsBlockAltair(key) or db.containsBlockPhase0(key)
|
||||||
|
|
||||||
proc containsState*(db: BeaconChainDBV0, key: Eth2Digest): bool =
|
proc containsState*(db: BeaconChainDBV0, key: Eth2Digest): bool =
|
||||||
let sk = subkey(BeaconStateNoImmutableValidators, key)
|
let sk = subkey(BeaconStateNoImmutableValidators, key)
|
||||||
|
|
Loading…
Reference in New Issue