From 8296dd443bbf8676ae747f665d58a633999d82f5 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Fri, 28 Oct 2022 10:51:16 -0400 Subject: [PATCH] fix(accounts-service): use WAKUV2_PORT env var for account creation too --- src/app_service/service/accounts/service.nim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app_service/service/accounts/service.nim b/src/app_service/service/accounts/service.nim index fef63544ec..751eb9b30f 100644 --- a/src/app_service/service/accounts/service.nim +++ b/src/app_service/service/accounts/service.nim @@ -304,6 +304,12 @@ proc getDefaultNodeConfig*(self: Service, installationId: string): JsonNode = result["WakuConfig"]["Enabled"] = false.newJBool() + if existsEnv("WAKUV2_PORT"): + let wV2Port = parseInt($getEnv("WAKUV2_PORT")) + # Waku V2 config + result["WakuV2Config"]["Port"] = wV2Port.newJInt() + result["WakuV2Config"]["UDPPort"] = wV2Port.newJInt() + if TEST_PEER_ENR != "": result["ClusterConfig"]["BootNodes"] = %* @[TEST_PEER_ENR] result["ClusterConfig"]["TrustedMailServers"] = %* @[TEST_PEER_ENR]