aboutsummaryrefslogtreecommitdiffstats
path: root/mobile
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2017-01-05 20:56:06 +0800
committerFelix Lange <fjl@twurst.com>2017-01-06 21:15:21 +0800
commitb9683d3748dcb73ab5a5474334eaf157267d9c4a (patch)
treedc778d15d01f8e8fdbb7c7ffa80acc9729645bd4 /mobile
parentbbc4ea4ae8e8a962deae3d5693d9d4a9376eab88 (diff)
downloaddexon-b9683d3748dcb73ab5a5474334eaf157267d9c4a.tar.gz
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.go4
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
}