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 586d549113
commit f282621a1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,