From 4af2a788199b094190688755416e56ca20910485 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