mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-06-04 05:00:02 +00:00
set acceptablerootwindowsize and root poll delay
This commit is contained in:
parent
3649e859f5
commit
1142bcc1a8
@ -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"
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user