diff options
author | Felix Lange <fjl@twurst.com> | 2017-01-05 20:56:06 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2017-01-06 21:15:21 +0800 |
commit | b9683d3748dcb73ab5a5474334eaf157267d9c4a (patch) | |
tree | dc778d15d01f8e8fdbb7c7ffa80acc9729645bd4 /mobile | |
parent | bbc4ea4ae8e8a962deae3d5693d9d4a9376eab88 (diff) | |
download | dexon-b9683d3748dcb73ab5a5474334eaf157267d9c4a.tar dexon-b9683d3748dcb73ab5a5474334eaf157267d9c4a.tar.gz dexon-b9683d3748dcb73ab5a5474334eaf157267d9c4a.tar.bz2 dexon-b9683d3748dcb73ab5a5474334eaf157267d9c4a.tar.lz dexon-b9683d3748dcb73ab5a5474334eaf157267d9c4a.tar.xz dexon-b9683d3748dcb73ab5a5474334eaf157267d9c4a.tar.zst dexon-b9683d3748dcb73ab5a5474334eaf157267d9c4a.zip |
params: avoid importing p2p/discover for bootnodes
params is imported by leaf-ish library packages and should not pull in
the p2p stack.
Diffstat (limited to 'mobile')
-rw-r--r-- | mobile/params.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mobile/params.go b/mobile/params.go index 8d5d3edbe..87747c7b0 100644 --- a/mobile/params.go +++ b/mobile/params.go @@ -85,8 +85,8 @@ func NewChainConfig() *ChainConfig { // by the foundation running the V5 discovery protocol. func FoundationBootnodes() *Enodes { nodes := &Enodes{nodes: make([]*discv5.Node, len(params.DiscoveryV5Bootnodes))} - for i, node := range params.DiscoveryV5Bootnodes { - nodes.nodes[i] = node + for i, url := range params.DiscoveryV5Bootnodes { + nodes.nodes[i] = discv5.MustParseNode(url) } return nodes } |