diff options
author | Felix Lange <fjl@twurst.com> | 2015-05-27 04:03:11 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-05-27 04:03:11 +0800 |
commit | 6a674ffea506aeb9962bb22bc0dbe0d5df72043b (patch) | |
tree | d56078ad4a64e5bf970bb5dabd4ec9483c9b72e6 /cmd/utils | |
parent | b1f7b5d1f60521cd700c08ae2985518cd36fc627 (diff) | |
parent | 4de8213887b26b13d18fc6da6ce159e60ddae6fa (diff) | |
download | dexon-6a674ffea506aeb9962bb22bc0dbe0d5df72043b.tar dexon-6a674ffea506aeb9962bb22bc0dbe0d5df72043b.tar.gz dexon-6a674ffea506aeb9962bb22bc0dbe0d5df72043b.tar.bz2 dexon-6a674ffea506aeb9962bb22bc0dbe0d5df72043b.tar.lz dexon-6a674ffea506aeb9962bb22bc0dbe0d5df72043b.tar.xz dexon-6a674ffea506aeb9962bb22bc0dbe0d5df72043b.tar.zst dexon-6a674ffea506aeb9962bb22bc0dbe0d5df72043b.zip |
Merge pull request #1108 from karalabe/fine-seeding
Fine tune seeder and p2p peer handling
Diffstat (limited to 'cmd/utils')
-rw-r--r-- | cmd/utils/flags.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index cb774aa5b..155110ddc 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -235,6 +235,10 @@ var ( Usage: "NAT port mapping mechanism (any|none|upnp|pmp|extip:<IP>)", Value: "any", } + NoDiscoverFlag = cli.BoolFlag{ + Name: "nodiscover", + Usage: "Disables the peer discovery mechanism (manual peer addition)", + } WhisperEnabledFlag = cli.BoolFlag{ Name: "shh", Usage: "Enable whisper", @@ -312,6 +316,7 @@ func MakeEthConfig(clientID, version string, ctx *cli.Context) *eth.Config { Port: ctx.GlobalString(ListenPortFlag.Name), NAT: GetNAT(ctx), NatSpec: ctx.GlobalBool(NatspecEnabledFlag.Name), + Discovery: !ctx.GlobalBool(NoDiscoverFlag.Name), NodeKey: GetNodeKey(ctx), Shh: ctx.GlobalBool(WhisperEnabledFlag.Name), Dial: true, @@ -320,7 +325,6 @@ func MakeEthConfig(clientID, version string, ctx *cli.Context) *eth.Config { SolcPath: ctx.GlobalString(SolcPathFlag.Name), AutoDAG: ctx.GlobalBool(AutoDAGFlag.Name) || ctx.GlobalBool(MiningEnabledFlag.Name), } - } func GetChain(ctx *cli.Context) (*core.ChainManager, common.Database, common.Database) { |