fix: paths

This commit is contained in:
Richard Ramos 2021-06-23 16:48:38 -04:00 committed by Iuri Matias
parent 5daf7894f5
commit 2205d57636
4 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import NimQml
import NimQml, json
import chronicles, strutils
import ../../../status/types as status_types
import ../../../status/[status, settings, accounts]

View File

@ -76,6 +76,11 @@ proc changeNetwork*(self: AccountModel, fleetConfig: FleetConfig, network: strin
let networkData = networks.getElems().find((n:JsonNode) => n["id"].getStr() == network)
let updatedNodeConfig = status_accounts.getNodeConfig(fleetConfig, installationId, networkData)
updatedNodeConfig["KeyStoreDir"] = newJString("./keystore")
updatedNodeConfig["LogFile"] = newJString("./geth.log")
updatedNodeConfig["ShhextConfig"]["BackupDisabledDataDir"] = newJString("./")
statusGoResult = status_settings.saveSetting(Setting.NodeConfig, updatedNodeConfig)
if statusGoResult.error != "":
error "Error saving updated node config", msg=statusGoResult.error

View File

@ -36,8 +36,6 @@ proc getNodeConfig*(fleetConfig: FleetConfig, installationId: string, networkCon
result["UpstreamConfig"]["URL"] = upstreamUrl
result["ShhextConfig"]["InstallationID"] = newJString(installationId)
echo $result
# TODO: commented since it's not necessary (we do the connections thru C bindings). Enable it thru an option once status-nodes are able to be configured in desktop
# result["ListenAddr"] = if existsEnv("STATUS_PORT"): newJString("0.0.0.0:" & $getEnv("STATUS_PORT")) else: newJString("0.0.0.0:30305")
result["WakuConfig"]["BloomFilterMode"] = newJBool(bloomFilterMode)

View File

@ -125,6 +125,9 @@ proc getWakuVersion*():int =
proc setWakuVersion*(newVersion: int) =
let nodeConfig = getNodeConfig().parseJSON()
nodeConfig["KeyStoreDir"] = newJString("./keystore")
nodeConfig["LogFile"] = newJString("./geth.log")
nodeConfig["ShhextConfig"]["BackupDisabledDataDir"] = newJString("./")
if newVersion == 1:
nodeConfig["WakuConfig"]["Enabled"] = newJBool(true)
nodeConfig["WakuV2Config"]["Enabled"] = newJBool(false)