fix(rln): set maxEpochGap as maximum epoch gap (#1257)

This commit is contained in:
G 2022-10-10 21:50:16 +02:00 committed by GitHub
parent 37caab8a13
commit 1d21dc48da

View File

@ -815,7 +815,7 @@ proc validateMessage*(rlnPeer: WakuRLNRelay, msg: WakuMessage,
debug "message epoch", msgEpoch = fromEpoch(msgEpoch)
# validate the epoch
if abs(gap) >= MaxEpochGap:
if abs(gap) > MaxEpochGap:
# message's epoch is too old or too ahead
# accept messages whose epoch is within +-MaxEpochGap from the current epoch
debug "invalid message: epoch gap exceeds a threshold", gap = gap,