mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-13 18:25:45 +00:00
Upgrade status-go to 0.17.6-beta (Constantinople).
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
parent
83a8d9db27
commit
afc368b1b0
@ -1 +1 @@
|
|||||||
v0.16.3-9-g27700aa2
|
0.17.6-beta
|
||||||
|
@ -174,9 +174,8 @@
|
|||||||
(defn registered-peer?
|
(defn registered-peer?
|
||||||
"truthy if the enode is a registered peer"
|
"truthy if the enode is a registered peer"
|
||||||
[peers enode]
|
[peers enode]
|
||||||
(let [peer-ids (into #{} (map :id) peers)
|
(let [registered-enodes (into #{} (map :enode) peers)]
|
||||||
enode-id (transport.utils/extract-enode-id enode)]
|
(contains? registered-enodes enode)))
|
||||||
(contains? peer-ids enode-id)))
|
|
||||||
|
|
||||||
(defn update-mailserver-state [db state]
|
(defn update-mailserver-state [db state]
|
||||||
(assoc db :mailserver/state state))
|
(assoc db :mailserver/state state))
|
||||||
|
@ -22,8 +22,10 @@
|
|||||||
|
|
||||||
(def peers
|
(def peers
|
||||||
[{:id "08d8eb6177b187049f6c97ed3f6c74fbbefb94c7ad10bafcaf4b65ce89c314dcfee0a8bc4e7a5b824dfa08b45b360cc78f34f0aff981f8386caa07652d2e601b"
|
[{:id "08d8eb6177b187049f6c97ed3f6c74fbbefb94c7ad10bafcaf4b65ce89c314dcfee0a8bc4e7a5b824dfa08b45b360cc78f34f0aff981f8386caa07652d2e601b"
|
||||||
|
:enode "enode://08d8eb6177b187049f6c97ed3f6c74fbbefb94c7ad10bafcaf4b65ce89c314dcfee0a8bc4e7a5b824dfa08b45b360cc78f34f0aff981f8386caa07652d2e601b@163.172.177.138:40404"
|
||||||
:name "StatusIM/v0.9.9-unstable/linux-amd64/go1.9.2"}
|
:name "StatusIM/v0.9.9-unstable/linux-amd64/go1.9.2"}
|
||||||
{:id "0f7c65277f916ff4379fe520b875082a56e587eb3ce1c1567d9ff94206bdb05ba167c52272f20f634cd1ebdec5d9dfeb393018bfde1595d8e64a717c8b46692f"
|
{:id "0f7c65277f916ff4379fe520b875082a56e587eb3ce1c1567d9ff94206bdb05ba167c52272f20f634cd1ebdec5d9dfeb393018bfde1595d8e64a717c8b46692f"
|
||||||
|
:enode "enode://0f7c65277f916ff4379fe520b875082a56e587eb3ce1c1567d9ff94206bdb05ba167c52272f20f634cd1ebdec5d9dfeb393018bfde1595d8e64a717c8b46692f@203.136.241.111:40404"
|
||||||
:name "Geth/v1.7.2-stable/linux-amd64/go1.9.1"}])
|
:name "Geth/v1.7.2-stable/linux-amd64/go1.9.1"}])
|
||||||
|
|
||||||
(deftest test-registered-peer?
|
(deftest test-registered-peer?
|
||||||
@ -297,7 +299,7 @@
|
|||||||
(defn cofx-fixtures [sym-key registered-peer?]
|
(defn cofx-fixtures [sym-key registered-peer?]
|
||||||
{:db {:mailserver/state :connected
|
{:db {:mailserver/state :connected
|
||||||
:peers-summary (if registered-peer?
|
:peers-summary (if registered-peer?
|
||||||
[{:id "mailserver-id"}]
|
[{:id "mailserver-id" :enode "enode://mailserver-id@ip"}]
|
||||||
[])
|
[])
|
||||||
:account/account {:settings {:fleet :eth.beta}}
|
:account/account {:settings {:fleet :eth.beta}}
|
||||||
:mailserver/current-id "mailserver-a"
|
:mailserver/current-id "mailserver-a"
|
||||||
@ -308,7 +310,7 @@
|
|||||||
(mailserver/peers-summary-change (cofx-fixtures sym-key
|
(mailserver/peers-summary-change (cofx-fixtures sym-key
|
||||||
registered-peer?)
|
registered-peer?)
|
||||||
(if registered-peer-before?
|
(if registered-peer-before?
|
||||||
[{:id "mailserver-id"}]
|
[{:id "mailserver-id" :enode "enode://mailserver-id@ip"}]
|
||||||
[])))
|
[])))
|
||||||
|
|
||||||
(deftest peers-summary-change
|
(deftest peers-summary-change
|
||||||
|
Loading…
x
Reference in New Issue
Block a user