test for newest fork first (#2891)

This commit is contained in:
tersec 2021-09-23 06:53:36 +00:00 committed by GitHub
parent c95d4f31ed
commit 5670d58155
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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