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 committed May 8, 2024
1 parent f2b4c85 commit c7d0183
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 c7d0183

Please sign in to comment.