fix: conditional for clearing nullifier log

This commit is contained in:
rymnc 2024-05-08 17:10:06 +05:30 committed by stubbsta
parent f50507db23
commit ea35375279

View File

@ -331,7 +331,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