set acceptablerootwindowsize and root poll delay

This commit is contained in:
stubbsta 2026-06-01 10:34:40 +02:00
parent 3649e859f5
commit 1142bcc1a8
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ import ./protocol_types
import ../waku_keystore
# Acceptable roots for merkle root validation of incoming messages
const AcceptableRootWindowSize* = 10
const AcceptableRootWindowSize* = 50
# RLN membership key and index files path
const RlnCredentialsFilename* = "rlnCredentials.txt"

View File

@ -228,7 +228,7 @@ proc updateRecentRoots*(g: OnchainGroupManager): Future[bool] {.async.} =
proc trackRootChanges*(g: OnchainGroupManager): Future[Result[void, string]] {.async.} =
?checkInitialized(g)
const rpcDelay = 30.seconds
const rpcDelay = 10.seconds
while true:
let rootUpdated = await g.updateRecentRoots()

View File

@ -260,7 +260,7 @@ proc validateMessage*(
if hasDup.isErr():
waku_rln_errors_total.inc(labelValues = ["duplicate_check"])
elif hasDup.value == true:
debug "invalid message: message is spam",
trace "invalid message: message is spam",
payloadLen = msg.payload.len, contentTopic = msg.contentTopic
waku_rln_spam_messages_total.inc()
return MessageValidationResult.Spam