diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-11-09 22:35:04 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-11-15 00:00:14 +0800 |
commit | b61f48e5aad9cf897f5655a0db002a3349109c67 (patch) | |
tree | 32b0d7d4a126ee444e1cd563c5d4d8ebadef09ec /node/node.go | |
parent | de4b39a1a32a61a9683a036b2e27e8df7cd4c9ff (diff) | |
download | dexon-b61f48e5aad9cf897f5655a0db002a3349109c67.tar dexon-b61f48e5aad9cf897f5655a0db002a3349109c67.tar.gz dexon-b61f48e5aad9cf897f5655a0db002a3349109c67.tar.bz2 dexon-b61f48e5aad9cf897f5655a0db002a3349109c67.tar.lz dexon-b61f48e5aad9cf897f5655a0db002a3349109c67.tar.xz dexon-b61f48e5aad9cf897f5655a0db002a3349109c67.tar.zst dexon-b61f48e5aad9cf897f5655a0db002a3349109c67.zip |
cmd, mobile, node, p2p: surface the discovery V5 bootnodes
Diffstat (limited to 'node/node.go')
-rw-r--r-- | node/node.go | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/node/node.go b/node/node.go index fb11696fa..d49ae3a45 100644 --- a/node/node.go +++ b/node/node.go @@ -154,21 +154,22 @@ func (n *Node) Start() error { // Initialize the p2p server. This creates the node key and // discovery databases. n.serverConfig = p2p.Config{ - PrivateKey: n.config.NodeKey(), - Name: n.config.NodeName(), - Discovery: !n.config.NoDiscovery, - DiscoveryV5: n.config.DiscoveryV5, - BootstrapNodes: n.config.BootstrapNodes, - StaticNodes: n.config.StaticNodes(), - TrustedNodes: n.config.TrusterNodes(), - NodeDatabase: n.config.NodeDB(), - ListenAddr: n.config.ListenAddr, - ListenAddrV5: n.config.ListenAddrV5, - NAT: n.config.NAT, - Dialer: n.config.Dialer, - NoDial: n.config.NoDial, - MaxPeers: n.config.MaxPeers, - MaxPendingPeers: n.config.MaxPendingPeers, + PrivateKey: n.config.NodeKey(), + Name: n.config.NodeName(), + Discovery: !n.config.NoDiscovery, + DiscoveryV5: n.config.DiscoveryV5, + DiscoveryV5Addr: n.config.DiscoveryV5Addr, + BootstrapNodes: n.config.BootstrapNodes, + BootstrapNodesV5: n.config.BootstrapNodesV5, + StaticNodes: n.config.StaticNodes(), + TrustedNodes: n.config.TrusterNodes(), + NodeDatabase: n.config.NodeDB(), + ListenAddr: n.config.ListenAddr, + NAT: n.config.NAT, + Dialer: n.config.Dialer, + NoDial: n.config.NoDial, + MaxPeers: n.config.MaxPeers, + MaxPendingPeers: n.config.MaxPendingPeers, } running := &p2p.Server{Config: n.serverConfig} glog.V(logger.Info).Infoln("instance:", n.serverConfig.Name) |