Fix field names related to Wakuv2 config

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
Vitaliy Vlasov 2021-10-19 21:36:51 +03:00 committed by Andrea Maria Piana
parent 6591611473
commit 21e4885fc9
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
3 changed files with 4 additions and 4 deletions

View File

@ -113,8 +113,8 @@
(into (pick-nodes 2
(vals (:whisper current-fleet)))
(vals (:static current-fleet))))
:WakuNodes wakuv2-nodes
:WakuStoreNodes wakuv2-nodes
:RelayNodes wakuv2-nodes
:StoreNodes wakuv2-nodes
:RendezvousNodes (if wakuv2-enabled [] rendezvous-nodes)})
:always

View File

@ -47,7 +47,7 @@
[{:keys [db]} peer-stats]
(let [previous-stats (:peer-stats db)]
{:db (assoc db :peer-stats peer-stats
:peers-count (count (:Peers peer-stats)))}))
:peers-count (count (:peers peer-stats)))}))
(fx/defn process
{:events [:signals/signal-received]}

View File

@ -482,7 +482,7 @@
;; then fetch connectivity status from
;; peer-stats (populated from "wakuv2.peerstats" status-go signal)
;; Otherwise use peers-count fetched from "discovery.summary" signal
(if wakuv2-flag (not (:IsOnline peer-stats)) (zero? peers-count))))
(if wakuv2-flag (not (:isOnline peer-stats)) (zero? peers-count))))
(re-frame/reg-sub
:offline?