fix: add register topics to the config
This commit is contained in:
parent
77927da284
commit
2142609eb1
|
@ -135,6 +135,7 @@ var NODE_CONFIG* = %* {
|
|||
"Enabled": true
|
||||
},
|
||||
"Rendezvous": true,
|
||||
"RegisterTopics": @["whispermail"],
|
||||
"RequireTopics": {
|
||||
"whisper": {
|
||||
"Max": 2,
|
||||
|
|
|
@ -144,6 +144,7 @@ proc getWakuVersion*():int =
|
|||
|
||||
proc setWakuVersion*(newVersion: int) =
|
||||
let nodeConfig = getNodeConfig()
|
||||
nodeConfig["RegisterTopics"] = %* @["whispermail"]
|
||||
if newVersion == 1:
|
||||
nodeConfig["WakuConfig"]["Enabled"] = newJBool(true)
|
||||
nodeConfig["WakuV2Config"]["Enabled"] = newJBool(false)
|
||||
|
|
Loading…
Reference in New Issue