diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-05-27 00:07:24 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-05-27 00:07:24 +0800 |
commit | e1a0ee8fc541bd73ac5d5a0cdacfe5265fcef833 (patch) | |
tree | e60fe4e4aa35fc4d62f186c04b6d0aa85784ca7a /eth/backend.go | |
parent | 278183c7e727f875fb2eae8ceba29bfd4b01afc2 (diff) | |
download | dexon-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.go | 2 |
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, |