From 228e74642106090094e3e7b695d3c2c603a35d80 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Thu, 18 Feb 2021 11:29:29 -0400 Subject: [PATCH] fix: Disable ListenAddr as it is not necessary for running status-desktop --- src/status/libstatus/accounts.nim | 3 ++- src/status/libstatus/accounts/constants.nim | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/status/libstatus/accounts.nim b/src/status/libstatus/accounts.nim index fa59095878..0e9de89c68 100644 --- a/src/status/libstatus/accounts.nim +++ b/src/status/libstatus/accounts.nim @@ -29,7 +29,8 @@ proc getNodeConfig*(fleetConfig: FleetConfig, installationId: string, networkCon result["UpstreamConfig"]["Enabled"] = networkConfig["config"]["UpstreamConfig"]["Enabled"] result["UpstreamConfig"]["URL"] = upstreamUrl result["ShhextConfig"]["InstallationID"] = newJString(installationId) - result["ListenAddr"] = if existsEnv("STATUS_PORT"): newJString("0.0.0.0:" & $getEnv("STATUS_PORT")) else: newJString("0.0.0.0:30305") + # 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") proc getNodeConfig*(fleetConfig: FleetConfig, installationId: string, currentNetwork: string = constants.DEFAULT_NETWORK_NAME, fleet: Fleet = Fleet.PROD): JsonNode = let networkConfig = getNetworkConfig(currentNetwork) diff --git a/src/status/libstatus/accounts/constants.nim b/src/status/libstatus/accounts/constants.nim index 6ad50b118a..b06043643b 100644 --- a/src/status/libstatus/accounts/constants.nim +++ b/src/status/libstatus/accounts/constants.nim @@ -117,7 +117,8 @@ var NODE_CONFIG* = %* { "DataDir": "./ethereum/mainnet", "EnableNTPSync": true, "KeyStoreDir": "./keystore", - "ListenAddr": ":30304", + # 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 + #"ListenAddr": ":30304", "LogEnabled": true, "LogFile": "geth.log", "LogLevel": "INFO",