cmd/utils, mobile: place bootnodes in LGPL packages
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user