mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-05-17 04:09:50 +00:00
chore(networkmonitor): add missing field on RlnRelay init, set default for num of shard (#3136)
This commit is contained in:
parent
ff21c01ebd
commit
edcb0e15f2
@ -614,6 +614,12 @@ when isMainModule:
|
|||||||
waitFor node.mountRelay()
|
waitFor node.mountRelay()
|
||||||
waitFor node.mountLibp2pPing()
|
waitFor node.mountLibp2pPing()
|
||||||
|
|
||||||
|
var onFatalErrorAction = proc(msg: string) {.gcsafe, closure.} =
|
||||||
|
## Action to be taken when an internal error occurs during the node run.
|
||||||
|
## e.g. the connection with the database is lost and not recovered.
|
||||||
|
error "Unrecoverable error occurred", error = msg
|
||||||
|
quit(QuitFailure)
|
||||||
|
|
||||||
if conf.rlnRelay and conf.rlnRelayEthContractAddress != "":
|
if conf.rlnRelay and conf.rlnRelayEthContractAddress != "":
|
||||||
let rlnConf = WakuRlnConfig(
|
let rlnConf = WakuRlnConfig(
|
||||||
rlnRelayDynamic: conf.rlnRelayDynamic,
|
rlnRelayDynamic: conf.rlnRelayDynamic,
|
||||||
@ -624,6 +630,7 @@ when isMainModule:
|
|||||||
rlnRelayCredPassword: "",
|
rlnRelayCredPassword: "",
|
||||||
rlnRelayTreePath: conf.rlnRelayTreePath,
|
rlnRelayTreePath: conf.rlnRelayTreePath,
|
||||||
rlnEpochSizeSec: conf.rlnEpochSizeSec,
|
rlnEpochSizeSec: conf.rlnEpochSizeSec,
|
||||||
|
onFatalErrorAction: onFatalErrorAction,
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
@ -45,7 +45,9 @@ type NetworkMonitorConf* = object
|
|||||||
.}: seq[uint16]
|
.}: seq[uint16]
|
||||||
|
|
||||||
numShardsInNetwork* {.
|
numShardsInNetwork* {.
|
||||||
desc: "Number of shards in the network", name: "num-shards-in-network"
|
desc: "Number of shards in the network",
|
||||||
|
name: "num-shards-in-network",
|
||||||
|
defaultValue: 8
|
||||||
.}: uint32
|
.}: uint32
|
||||||
|
|
||||||
refreshInterval* {.
|
refreshInterval* {.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user