From 7a0fc763a4ee09de6723b5ae5a600a2a0cf15a55 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 21 Nov 2018 15:52:23 +0200 Subject: [PATCH] Rendezvous should be false if list of nodes is empty We can disable this validation in status-go. I am not sure why we have it. But it will take longer. Signed-off-by: Igor Mandrigin --- src/status_im/node/core.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/status_im/node/core.cljs b/src/status_im/node/core.cljs index ebcd2dc264..ac096a54eb 100644 --- a/src/status_im/node/core.cljs +++ b/src/status_im/node/core.cljs @@ -72,6 +72,7 @@ (let [accounts (get db :accounts/accounts) current-fleet-key (fleet/current-fleet db address) current-fleet (get fleet/fleets current-fleet-key) + rendezvous-nodes (pick-nodes 3 (vals (:rendezvous current-fleet))) {:keys [network installation-id settings @@ -86,13 +87,13 @@ current-fleet (assoc :NoDiscovery false - :Rendezvous true + :Rendezvous (not (empty? rendezvous-nodes)) :ClusterConfig {:Enabled true :Fleet (name current-fleet-key) :BootNodes (pick-nodes 4 (vals (:boot current-fleet))) :TrustedMailServers (pick-nodes 6 (vals (:mail current-fleet))) :StaticNodes (pick-nodes 2 (vals (:whisper current-fleet))) - :RendezvousNodes (pick-nodes 3 (vals (:rendezvous current-fleet)))}) + :RendezvousNodes rendezvous-nodes}) :always (assoc :WhisperConfig {:Enabled true