mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-11 06:47:01 +00:00
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
|
"Enabled": true
|
||||||
},
|
},
|
||||||
"Rendezvous": true,
|
"Rendezvous": true,
|
||||||
|
"RegisterTopics": @["whispermail"],
|
||||||
"RequireTopics": {
|
"RequireTopics": {
|
||||||
"whisper": {
|
"whisper": {
|
||||||
"Max": 2,
|
"Max": 2,
|
||||||
|
@ -144,6 +144,7 @@ proc getWakuVersion*():int =
|
|||||||
|
|
||||||
proc setWakuVersion*(newVersion: int) =
|
proc setWakuVersion*(newVersion: int) =
|
||||||
let nodeConfig = getNodeConfig()
|
let nodeConfig = getNodeConfig()
|
||||||
|
nodeConfig["RegisterTopics"] = %* @["whispermail"]
|
||||||
if newVersion == 1:
|
if newVersion == 1:
|
||||||
nodeConfig["WakuConfig"]["Enabled"] = newJBool(true)
|
nodeConfig["WakuConfig"]["Enabled"] = newJBool(true)
|
||||||
nodeConfig["WakuV2Config"]["Enabled"] = newJBool(false)
|
nodeConfig["WakuV2Config"]["Enabled"] = newJBool(false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user