fix(accounts-service): use WAKUV2_PORT env var for account creation too

This commit is contained in:
Jonathan Rainville 2022-10-28 10:51:16 -04:00
parent 794563bfff
commit 8296dd443b
1 changed files with 6 additions and 0 deletions

View File

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