From dfe79cc7845d94d14c2bc091c7eeac082f6b1e90 Mon Sep 17 00:00:00 2001 From: Péter Szilágyi Date: Mon, 14 Nov 2016 13:44:35 +0200 Subject: cmd/utils, mobile: place bootnodes in LGPL packages --- mobile/discover.go | 11 ----------- mobile/params.go | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'mobile') diff --git a/mobile/discover.go b/mobile/discover.go index bb421fc87..9df2d04c3 100644 --- a/mobile/discover.go +++ b/mobile/discover.go @@ -22,20 +22,9 @@ package geth import ( "errors" - "github.com/ethereum/go-ethereum/cmd/utils" "github.com/ethereum/go-ethereum/p2p/discv5" ) -// FoundationBootnodes returns the enode URLs of the P2P bootstrap nodes operated -// by the foundation running the V5 discovery protocol. -func FoundationBootnodes() *Enodes { - nodes := &Enodes{nodes: make([]*discv5.Node, len(utils.DiscoveryV5Bootnodes))} - for i, node := range utils.DiscoveryV5Bootnodes { - nodes.nodes[i] = node - } - return nodes -} - // Enode represents a host on the network. type Enode struct { node *discv5.Node diff --git a/mobile/params.go b/mobile/params.go index bf0df7014..48344a538 100644 --- a/mobile/params.go +++ b/mobile/params.go @@ -20,6 +20,7 @@ package geth import ( "github.com/ethereum/go-ethereum/core" + "github.com/ethereum/go-ethereum/p2p/discv5" "github.com/ethereum/go-ethereum/params" ) @@ -76,3 +77,13 @@ type ChainConfig struct { func NewChainConfig() *ChainConfig { return new(ChainConfig) } + +// FoundationBootnodes returns the enode URLs of the P2P bootstrap nodes operated +// 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 + } + return nodes +} -- cgit