remove superfluous/overly aggressive, timing-dependent assertion (#2264)

This commit is contained in:
tersec 2021-01-25 17:52:55 +01:00 committed by GitHub
parent 5713a3ce4c
commit 8c48d44788
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -617,9 +617,6 @@ proc handleValidatorDuties*(node: BeaconNode, lastSlot, slot: Slot) {.async.} =
# The dontcheck option's a deliberately undocumented escape hatch for the
# local testnets and similar development and testing use cases.
doAssert node.config.gossipSlashingProtection == GossipSlashingProtectionMode.dontcheck or (
node.processor[].gossipSlashingProtection.probeEpoch <
node.processor[].gossipSlashingProtection.broadcastStartEpoch)
if curSlot.epoch <
node.processor[].gossipSlashingProtection.broadcastStartEpoch and
curSlot.epoch != node.processor[].gossipSlashingProtection.probeEpoch and