fix: add register topics to the config

This commit is contained in:
Richard Ramos 2021-08-23 15:45:50 -04:00 committed by Iuri Matias
parent 77927da284
commit 2142609eb1
2 changed files with 2 additions and 0 deletions

View File

@ -135,6 +135,7 @@ var NODE_CONFIG* = %* {
"Enabled": true
},
"Rendezvous": true,
"RegisterTopics": @["whispermail"],
"RequireTopics": {
"whisper": {
"Max": 2,

View File

@ -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)