Show status-go version again.
Also, don't hide errors when it is impossible to parse versions string that comes from status-go. Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
This commit is contained in:
parent
c56ef18ca9
commit
e588de35aa
|
@ -1 +1 @@
|
|||
0.23.0-beta.1
|
||||
0.23.0-beta.4
|
||||
|
|
|
@ -57,10 +57,12 @@
|
|||
-version
|
||||
(getNode
|
||||
(fn [err resp]
|
||||
(when-not err
|
||||
(cb resp))))))
|
||||
(if-not err
|
||||
(cb resp)
|
||||
(log/warn (str "unable to obtain web3 version:" err)))))))
|
||||
|
||||
(defn fetch-node-version-callback
|
||||
[resp {:keys [db]}]
|
||||
(when-let [node-version (second (re-find #"StatusIM/v(.*)/.*/.*" resp))]
|
||||
{:db (assoc db :web3-node-version node-version)}))
|
||||
(if-let [node-version (second (re-find #"StatusIM/v(.*)/.*/.*" resp))]
|
||||
{:db (assoc db :web3-node-version node-version)}
|
||||
(log/warn (str "unexpected web3 version format: " "'" resp "'"))))
|
||||
|
|
Loading…
Reference in New Issue