mirror of https://github.com/waku-org/nwaku.git
chore(rln-relay): disable merkle root validation (#1246)
* chore(rln-relay): disable merkle root validation * brings back validation of the root but without invalidating the message * adds the tracking issue Co-authored-by: sanaz <staheri14@ku.edu.tr>
This commit is contained in:
parent
44d8a2026d
commit
8a8c745e30
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue