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:
Igor Mandrigin 2019-02-25 15:37:37 +01:00
parent c56ef18ca9
commit e588de35aa
No known key found for this signature in database
GPG Key ID: 4A0EDDE26E66BC8B
2 changed files with 7 additions and 5 deletions

View File

@ -1 +1 @@
0.23.0-beta.1
0.23.0-beta.4

View File

@ -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 "'"))))