From 45e05b3f2baaca68225ead4e4c1e263c33f263b9 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Mon, 19 Dec 2022 17:13:31 +0100 Subject: [PATCH] [#14545] Force update wakuv2 default configs --- src/status_im/node/core.cljs | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/status_im/node/core.cljs b/src/status_im/node/core.cljs index 5b55aed17e..846a707b9d 100644 --- a/src/status_im/node/core.cljs +++ b/src/status_im/node/core.cljs @@ -64,10 +64,20 @@ (assoc :ListenAddr ":30304" :DataDir (str (:DataDir config) "_dev")))) +(def wakuv2-default-config + {:DiscoveryLimit 20 + :EnableDiscV5 true + :Host "0.0.0.0" + :AutoUpdate true + :PeerExchange true + :Port 0 + :UDPPort 0}) + (def login-node-config {:WalletConfig (cond-> {:Enabled true} (not= config/opensea-api-key "") - (assoc :OpenseaAPIKey config/opensea-api-key))}) + (assoc :OpenseaAPIKey config/opensea-api-key)) + :WakuV2Config wakuv2-default-config}) (defn- get-login-node-config [config] @@ -152,11 +162,8 @@ :BloomFilterMode waku-bloom-filter-mode :LightClient true :MinimumPoW 0.000001} - :WakuV2Config (assoc wakuv2-config - :DiscoveryLimit 20 - :EnableDiscV5 true - :Enabled wakuv2-enabled - :Host "0.0.0.0") + :WakuV2Config (merge (assoc wakuv2-config :Enabled wakuv2-enabled) + wakuv2-default-config) :ShhextConfig {:BackupDisabledDataDir (utils.platform/no-backup-directory) :InstallationID installation-id