node: topic discovery boot nodes updated
This commit is contained in:
parent
d1d62686d9
commit
402439c0f7
|
@ -25,6 +25,7 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/p2p/discover"
|
"github.com/ethereum/go-ethereum/p2p/discover"
|
||||||
"github.com/ethereum/go-ethereum/p2p/discv5"
|
"github.com/ethereum/go-ethereum/p2p/discv5"
|
||||||
"github.com/ethereum/go-ethereum/p2p/nat"
|
"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/mailserver"
|
||||||
"github.com/ethereum/go-ethereum/whisper/notifications"
|
"github.com/ethereum/go-ethereum/whisper/notifications"
|
||||||
whisper "github.com/ethereum/go-ethereum/whisper/whisperv5"
|
whisper "github.com/ethereum/go-ethereum/whisper/whisperv5"
|
||||||
|
@ -113,7 +114,7 @@ func defaultEmbeddedNodeConfig(config *params.NodeConfig) *node.Config {
|
||||||
Version: config.Version,
|
Version: config.Version,
|
||||||
P2P: p2p.Config{
|
P2P: p2p.Config{
|
||||||
NoDiscovery: true,
|
NoDiscovery: true,
|
||||||
DiscoveryV5: false,
|
DiscoveryV5: true,
|
||||||
DiscoveryV5Addr: ":0",
|
DiscoveryV5Addr: ":0",
|
||||||
BootstrapNodes: makeBootstrapNodes(),
|
BootstrapNodes: makeBootstrapNodes(),
|
||||||
BootstrapNodesV5: makeBootstrapNodesV5(),
|
BootstrapNodesV5: makeBootstrapNodesV5(),
|
||||||
|
@ -326,9 +327,7 @@ func makeBootstrapNodes() []*discover.Node {
|
||||||
|
|
||||||
// makeBootstrapNodesV5 returns default (hence bootstrap) list of peers
|
// makeBootstrapNodesV5 returns default (hence bootstrap) list of peers
|
||||||
func makeBootstrapNodesV5() []*discv5.Node {
|
func makeBootstrapNodesV5() []*discv5.Node {
|
||||||
// on desktops params.DiscoveryV5Bootnodes,
|
enodes := gethparams.DiscoveryV5Bootnodes
|
||||||
// on mobile client we deliberately keep this list empty
|
|
||||||
enodes := []string{}
|
|
||||||
|
|
||||||
var bootstapNodes []*discv5.Node
|
var bootstapNodes []*discv5.Node
|
||||||
for _, enode := range enodes {
|
for _, enode := range enodes {
|
||||||
|
|
Loading…
Reference in New Issue