From c7d01839b6cc26c5680ab02abe651c3366c115ac Mon Sep 17 00:00:00 2001 From: rymnc <43716372+rymnc@users.noreply.github.com> Date: Wed, 8 May 2024 17:10:06 +0530 Subject: [PATCH] fix: conditional for clearing nullifier log --- waku/waku_rln_relay/rln_relay.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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