mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-07 16:33:08 +00:00
deploy: 17e6a20d0620a01d963b536c38414096a73af6d0
This commit is contained in:
parent
8bff07f0df
commit
2e6c3e8f9a
@ -815,7 +815,7 @@ proc validateMessage*(rlnPeer: WakuRLNRelay, msg: WakuMessage,
|
|||||||
debug "message epoch", msgEpoch = fromEpoch(msgEpoch)
|
debug "message epoch", msgEpoch = fromEpoch(msgEpoch)
|
||||||
|
|
||||||
# validate the epoch
|
# validate the epoch
|
||||||
if abs(gap) >= MaxEpochGap:
|
if abs(gap) > MaxEpochGap:
|
||||||
# message's epoch is too old or too ahead
|
# message's epoch is too old or too ahead
|
||||||
# accept messages whose epoch is within +-MaxEpochGap from the current epoch
|
# accept messages whose epoch is within +-MaxEpochGap from the current epoch
|
||||||
debug "invalid message: epoch gap exceeds a threshold", gap = gap,
|
debug "invalid message: epoch gap exceeds a threshold", gap = gap,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user