From 3c89e8196d719096c8be3702288bac5a36be3889 Mon Sep 17 00:00:00 2001 From: Dustin Brody Date: Wed, 10 Mar 2021 08:09:06 +0100 Subject: [PATCH] fix variables --- beacon_chain/validators/slashing_protection_v2.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beacon_chain/validators/slashing_protection_v2.nim b/beacon_chain/validators/slashing_protection_v2.nim index 7958d65ed4..23fe6d3061 100644 --- a/beacon_chain/validators/slashing_protection_v2.nim +++ b/beacon_chain/validators/slashing_protection_v2.nim @@ -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))