diff --git a/beacon_chain/validators/slashing_protection_v2.nim b/beacon_chain/validators/slashing_protection_v2.nim index 23fe6d3061..9d3337a7cb 100644 --- a/beacon_chain/validators/slashing_protection_v2.nim +++ b/beacon_chain/validators/slashing_protection_v2.nim @@ -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(),