mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-05-06 02:19:29 +00:00
partial implementation
This commit is contained in:
parent
6ae46c5fff
commit
f5bcd1b0da
@ -19,7 +19,8 @@ import
|
|||||||
../common/confutils/envvar/std/net as confEnvvarNet,
|
../common/confutils/envvar/std/net as confEnvvarNet,
|
||||||
../common/logging,
|
../common/logging,
|
||||||
../waku_enr,
|
../waku_enr,
|
||||||
../node/peer_manager
|
../node/peer_manager,
|
||||||
|
../waku_rln_relay/constants
|
||||||
|
|
||||||
include ../waku_core/message/default_values
|
include ../waku_core/message/default_values
|
||||||
|
|
||||||
@ -97,8 +98,8 @@ type WakuNodeConf* = object
|
|||||||
|
|
||||||
rlnRelayUserMessageLimit* {.
|
rlnRelayUserMessageLimit* {.
|
||||||
desc:
|
desc:
|
||||||
"Set a user message limit for the rln membership registration. Must be a positive integer. Default is 1.",
|
"Set a user message limit for the rln membership registration. Must be a positive integer. Default is 20.",
|
||||||
defaultValue: 1,
|
defaultValue: DefaultUserMessageLimit,
|
||||||
name: "rln-relay-user-message-limit"
|
name: "rln-relay-user-message-limit"
|
||||||
.}: uint64
|
.}: uint64
|
||||||
|
|
||||||
|
|||||||
@ -220,6 +220,13 @@ proc setupProtocols(
|
|||||||
onFatalErrorAction: onFatalErrorAction,
|
onFatalErrorAction: onFatalErrorAction,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const defaultConf = defaultWakuNodeConf()
|
||||||
|
|
||||||
|
if not conf.rlnRelayDynamic:
|
||||||
|
if conf.rlnRelayEthClientAddress != defaultConf.rlnRelayEthClientAddress or
|
||||||
|
conf.rlnRelayEthContractAddress != defaultConf.rlnRelayEthContractAddress:
|
||||||
|
warn "Ethereum client or contract address were provided on static RLN. These configurations will be ignored"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
waitFor node.mountRlnRelay(rlnConf)
|
waitFor node.mountRlnRelay(rlnConf)
|
||||||
except CatchableError:
|
except CatchableError:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user