[fix] mailbox get-current-wnode-address

wrong symbol was introduced in recent PR

Signed-off-by: Eric Dvorsak <eric@dvorsak.fr>
This commit is contained in:
Eric Dvorsak 2018-05-18 16:22:25 +02:00
parent 11c59151f6
commit 1d94a4d1cb
No known key found for this signature in database
GPG Key ID: 932AC1CE5F05DE0C
1 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@
(defn get-current-wnode-address [db]
(let [network (get (:networks (:account/account db)) (:network db))
chain (ethereum/network->chain-keyword network)
wnode-id (get-in db [:account/account :settings :wnode network])]
wnode-id (get-in db [:account/account :settings :wnode chain])]
(get-in db [:inbox/wnodes chain wnode-id :address])))
(defn initialize-offline-inbox-flow []
@ -181,8 +181,8 @@
(handlers/register-handler-fx
:inbox/check-peer-added
;; We check if the wnode is part of the peers list
;; if not we dispatch a new fetch-peer event for later
;; We check if the wnode is part of the peers list
;; if not we dispatch a new fetch-peer event for later
(fn [{{:keys [web3 network-status] :as db} :db} [_ peers retries]]
(let [wnode (get-current-wnode-address db)]
(log/info "offline inbox: fetch-peers response" peers)