From 402439c0f7ad3a85bfe4a31558393fa50889a1bc Mon Sep 17 00:00:00 2001 From: Victor Farazdagi Date: Mon, 29 May 2017 19:15:34 +0300 Subject: [PATCH] node: topic discovery boot nodes updated --- geth/node/node.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/geth/node/node.go b/geth/node/node.go index 7c425f035..59f8057eb 100644 --- a/geth/node/node.go +++ b/geth/node/node.go @@ -25,6 +25,7 @@ import ( "github.com/ethereum/go-ethereum/p2p/discover" "github.com/ethereum/go-ethereum/p2p/discv5" "github.com/ethereum/go-ethereum/p2p/nat" + gethparams "github.com/ethereum/go-ethereum/params" "github.com/ethereum/go-ethereum/whisper/mailserver" "github.com/ethereum/go-ethereum/whisper/notifications" whisper "github.com/ethereum/go-ethereum/whisper/whisperv5" @@ -113,7 +114,7 @@ func defaultEmbeddedNodeConfig(config *params.NodeConfig) *node.Config { Version: config.Version, P2P: p2p.Config{ NoDiscovery: true, - DiscoveryV5: false, + DiscoveryV5: true, DiscoveryV5Addr: ":0", BootstrapNodes: makeBootstrapNodes(), BootstrapNodesV5: makeBootstrapNodesV5(), @@ -326,9 +327,7 @@ func makeBootstrapNodes() []*discover.Node { // makeBootstrapNodesV5 returns default (hence bootstrap) list of peers func makeBootstrapNodesV5() []*discv5.Node { - // on desktops params.DiscoveryV5Bootnodes, - // on mobile client we deliberately keep this list empty - enodes := []string{} + enodes := gethparams.DiscoveryV5Bootnodes var bootstapNodes []*discv5.Node for _, enode := range enodes {