Skip to content

Commit 5670d58

Browse files
authored
test for newest fork first (#2891)
1 parent c95d4f3 commit 5670d58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beacon_chain/beacon_chain_db.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ proc containsBlockAltair*(db: BeaconChainDB, key: Eth2Digest): bool =
797797
db.altairBlocks.contains(key.data).expectDb()
798798

799799
proc containsBlock*(db: BeaconChainDB, key: Eth2Digest): bool =
800-
db.containsBlockPhase0(key) or db.containsBlockAltair(key)
800+
db.containsBlockAltair(key) or db.containsBlockPhase0(key)
801801

802802
proc containsState*(db: BeaconChainDBV0, key: Eth2Digest): bool =
803803
let sk = subkey(BeaconStateNoImmutableValidators, key)

0 commit comments

Comments
 (0)