Skip to content

Commit

Permalink
fix: conditional for clearing nullifier log
Browse files Browse the repository at this point in the history
  • Loading branch information
rymnc authored and stubbsta committed May 10, 2024
1 parent 33f49d9 commit 4af2a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waku/waku_rln_relay/rln_relay.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4af2a78

Please sign in to comment.