Skip to content

Commit

Permalink
test for newest fork first (#2891)
Browse files Browse the repository at this point in the history
  • Loading branch information
tersec committed Sep 23, 2021
1 parent c95d4f3 commit 5670d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon_chain/beacon_chain_db.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5670d58

Please sign in to comment.