mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-02 09:46:26 +00:00
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()
|
||||
|
||||
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 =
|
||||
let sk = subkey(BeaconStateNoImmutableValidators, key)
|
||||
|
Loading…
x
Reference in New Issue
Block a user