[#14545] Force update wakuv2 default configs

This commit is contained in:
Roman Volosovskyi 2022-12-19 17:13:31 +01:00
parent 9f1af8a9c2
commit 45e05b3f2b
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 13 additions and 6 deletions

View File

@ -64,10 +64,20 @@
(assoc :ListenAddr ":30304" (assoc :ListenAddr ":30304"
:DataDir (str (:DataDir config) "_dev")))) :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 (def login-node-config
{:WalletConfig (cond-> {:Enabled true} {:WalletConfig (cond-> {:Enabled true}
(not= config/opensea-api-key "") (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 (defn- get-login-node-config
[config] [config]
@ -152,11 +162,8 @@
:BloomFilterMode waku-bloom-filter-mode :BloomFilterMode waku-bloom-filter-mode
:LightClient true :LightClient true
:MinimumPoW 0.000001} :MinimumPoW 0.000001}
:WakuV2Config (assoc wakuv2-config :WakuV2Config (merge (assoc wakuv2-config :Enabled wakuv2-enabled)
:DiscoveryLimit 20 wakuv2-default-config)
:EnableDiscV5 true
:Enabled wakuv2-enabled
:Host "0.0.0.0")
:ShhextConfig :ShhextConfig
{:BackupDisabledDataDir (utils.platform/no-backup-directory) {:BackupDisabledDataDir (utils.platform/no-backup-directory)
:InstallationID installation-id :InstallationID installation-id