From b9683d3748dcb73ab5a5474334eaf157267d9c4a Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 5 Jan 2017 13:56:06 +0100 Subject: params: avoid importing p2p/discover for bootnodes params is imported by leaf-ish library packages and should not pull in the p2p stack. --- mobile/params.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mobile') 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 } -- cgit v1.2.3