Skip to content

Commit

Permalink
fix variables
Browse files Browse the repository at this point in the history
  • Loading branch information
tersec committed Mar 10, 2021
1 parent c635207 commit 3c89e81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion beacon_chain/validators/slashing_protection_v2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,8 @@ proc pruneAttestations*(
let valID = db.getOrRegisterValidator(validator)

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

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

0 comments on commit 3c89e81

Please sign in to comment.