deploy: 7100de2d8942d3d7b58bb033b531fdc33d018326

This commit is contained in:
staheri14 2022-10-06 20:47:30 +00:00
parent 39ee1d8c9a
commit 3023e67195

View File

@ -809,10 +809,11 @@ proc validateMessage*(rlnPeer: WakuRLNRelay, msg: WakuMessage,
waku_rln_invalid_messages_total.inc(labelValues=["invalid_epoch"])
return MessageValidationResult.Invalid
## TODO: FIXME after resolving this issue https://github.com/status-im/nwaku/issues/1247
if not rlnPeer.validateRoot(msg.proof.merkleRoot):
debug "invalid message: provided root does not belong to acceptable window of roots", provided=msg.proof.merkleRoot, validRoots=rlnPeer.validMerkleRoots
waku_rln_invalid_messages_total.inc(labelValues=["invalid_root"])
return MessageValidationResult.Invalid
# return MessageValidationResult.Invalid
# verify the proof
let