aboutsummaryrefslogtreecommitdiffstats
path: root/eth/backend.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-05-27 00:07:24 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-05-27 00:07:24 +0800
commite1a0ee8fc541bd73ac5d5a0cdacfe5265fcef833 (patch)
treee60fe4e4aa35fc4d62f186c04b6d0aa85784ca7a /eth/backend.go
parent278183c7e727f875fb2eae8ceba29bfd4b01afc2 (diff)
downloaddexon-e1a0ee8fc541bd73ac5d5a0cdacfe5265fcef833.tar.gz
dexon-e1a0ee8fc541bd73ac5d5a0cdacfe5265fcef833.tar.zst
dexon-e1a0ee8fc541bd73ac5d5a0cdacfe5265fcef833.zip
cmd/geth, cmd/utils, eth, p2p: pass and honor a no discovery flag
Diffstat (limited to 'eth/backend.go')
-rw-r--r--eth/backend.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 73d37c536..18e214d44 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -72,6 +72,7 @@ type Config struct {
MaxPeers int
MaxPendingPeers int
+ Discovery bool
Port string
// Space-separated list of discovery node URLs
@@ -311,6 +312,7 @@ func New(config *Config) (*Ethereum, error) {
Name: config.Name,
MaxPeers: config.MaxPeers,
MaxPendingPeers: config.MaxPendingPeers,
+ Discovery: config.Discovery,
Protocols: protocols,
NAT: config.NAT,
NoDial: !config.Dial,