Skip to content

Commit

Permalink
remove assertion which gets tripped by interchange tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tersec committed Mar 10, 2021
1 parent 3c89e81 commit c0d8ecd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions beacon_chain/validators/slashing_protection_v2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1026,10 +1026,6 @@ proc pruneAttestations*(
## This is intended for interchange import.
let valID = db.getOrRegisterValidator(validator)

# Overflows in 14 trillion years (minimal) or 112 trillion years (mainnet)
doAssert newMinSourceEpoch <= high(int64).uint64
doAssert newMinTargetEpoch <= high(int64).uint64

let status = db.sqlPruneValidatorAttestations.exec(
(valID, int64 newMinSourceEpoch, int64 newMinTargetEpoch))
doAssert status.isOk(),
Expand Down

0 comments on commit c0d8ecd

Please sign in to comment.