aboutsummaryrefslogtreecommitdiffstats
path: root/node/config.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-11-15 01:10:03 +0800
committerGitHub <noreply@github.com>2016-11-15 01:10:03 +0800
commit8dcea0ac0785c92df84d55b8322281e12189d8fb (patch)
tree18d9c033f86af4eda374261e4c0a165ac2c733c0 /node/config.go
parentd89ea3e6f90c32a97bad58b82a15af0d81f4250e (diff)
parentdfe79cc7845d94d14c2bc091c7eeac082f6b1e90 (diff)
downloaddexon-8dcea0ac0785c92df84d55b8322281e12189d8fb.tar
dexon-8dcea0ac0785c92df84d55b8322281e12189d8fb.tar.gz
dexon-8dcea0ac0785c92df84d55b8322281e12189d8fb.tar.bz2
dexon-8dcea0ac0785c92df84d55b8322281e12189d8fb.tar.lz
dexon-8dcea0ac0785c92df84d55b8322281e12189d8fb.tar.xz
dexon-8dcea0ac0785c92df84d55b8322281e12189d8fb.tar.zst
dexon-8dcea0ac0785c92df84d55b8322281e12189d8fb.zip
Merge pull request #2977 from karalabe/initial-mobile-suport
mobile: initial wrappers for mobile support
Diffstat (limited to 'node/config.go')
-rw-r--r--node/config.go14
1 files changed, 11 insertions, 3 deletions
diff --git a/node/config.go b/node/config.go
index dbefcb8a5..62655f237 100644
--- a/node/config.go
+++ b/node/config.go
@@ -32,6 +32,7 @@ import (
"github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/logger/glog"
"github.com/ethereum/go-ethereum/p2p/discover"
+ "github.com/ethereum/go-ethereum/p2p/discv5"
"github.com/ethereum/go-ethereum/p2p/nat"
)
@@ -95,16 +96,23 @@ type Config struct {
// or not. Disabling is usually useful for protocol debugging (manual topology).
NoDiscovery bool
+ // DiscoveryV5 specifies whether the the new topic-discovery based V5 discovery
+ // protocol should be started or not.
DiscoveryV5 bool
- // Bootstrap nodes used to establish connectivity with the rest of the network.
+ // Listener address for the V5 discovery protocol UDP traffic.
+ DiscoveryV5Addr string
+
+ // BootstrapNodes used to establish connectivity with the rest of the network.
BootstrapNodes []*discover.Node
+ // BootstrapNodesV5 used to establish connectivity with the rest of the network
+ // using the V5 discovery protocol.
+ BootstrapNodesV5 []*discv5.Node
+
// Network interface address on which the node should listen for inbound peers.
ListenAddr string
- ListenAddrV5 string
-
// If set to a non-nil value, the given NAT port mapper is used to make the
// listening port available to the Internet.
NAT nat.Interface