diff --git a/waku/waku_rln_relay/rln_relay.nim b/waku/waku_rln_relay/rln_relay.nim index 44af388775..80890bef97 100644 --- a/waku/waku_rln_relay/rln_relay.nim +++ b/waku/waku_rln_relay/rln_relay.nim @@ -340,7 +340,7 @@ proc clearNullifierLog(rlnPeer: WakuRlnRelay) = # note: the epochs are ordered ascendingly debug "clearing nullifier log", count = rlnPeer.nullifierLog.len().uint, maxGap = rlnPeer.rlnMaxEpochGap - if rlnPeer.nullifierLog.len().uint < rlnPeer.rlnMaxEpochGap: + if rlnPeer.nullifierLog.len().uint <= rlnPeer.rlnMaxEpochGap: return debug "clearing epochs from the nullifier log", count = rlnPeer.rlnMaxEpochGap