aboutsummaryrefslogtreecommitdiffstats
path: root/mobile/params.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-11-14 19:44:35 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-11-15 00:00:14 +0800
commitdfe79cc7845d94d14c2bc091c7eeac082f6b1e90 (patch)
tree18d9c033f86af4eda374261e4c0a165ac2c733c0 /mobile/params.go
parent4a439c2359991bdc49463ae66da11da895cc6eb7 (diff)
downloadgo-tangerine-dfe79cc7845d94d14c2bc091c7eeac082f6b1e90.tar
go-tangerine-dfe79cc7845d94d14c2bc091c7eeac082f6b1e90.tar.gz
go-tangerine-dfe79cc7845d94d14c2bc091c7eeac082f6b1e90.tar.bz2
go-tangerine-dfe79cc7845d94d14c2bc091c7eeac082f6b1e90.tar.lz
go-tangerine-dfe79cc7845d94d14c2bc091c7eeac082f6b1e90.tar.xz
go-tangerine-dfe79cc7845d94d14c2bc091c7eeac082f6b1e90.tar.zst
go-tangerine-dfe79cc7845d94d14c2bc091c7eeac082f6b1e90.zip
cmd/utils, mobile: place bootnodes in LGPL packages
Diffstat (limited to 'mobile/params.go')
-rw-r--r--mobile/params.go11
1 files changed, 11 insertions, 0 deletions
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
+}