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 Jun 5, 2024
1 parent d8c5c15 commit 4b60735
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 @@ -338,7 +338,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 4b60735

Please sign in to comment.