aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-05-08 21:53:40 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-05-08 21:53:40 +0800
commit23454dcfcb75b9e421d0c3bfe67d33ab49633c5c (patch)
tree547d6ff40c82f00f1a09e3263c10b7e94c81e45a /cmd/utils
parentf819ac715858bd61094e101a199f8e1b79496dbb (diff)
parent8735e5addda74882da66deab8cf038be1fb3ed3f (diff)
downloaddexon-23454dcfcb75b9e421d0c3bfe67d33ab49633c5c.tar
dexon-23454dcfcb75b9e421d0c3bfe67d33ab49633c5c.tar.gz
dexon-23454dcfcb75b9e421d0c3bfe67d33ab49633c5c.tar.bz2
dexon-23454dcfcb75b9e421d0c3bfe67d33ab49633c5c.tar.lz
dexon-23454dcfcb75b9e421d0c3bfe67d33ab49633c5c.tar.xz
dexon-23454dcfcb75b9e421d0c3bfe67d33ab49633c5c.tar.zst
dexon-23454dcfcb75b9e421d0c3bfe67d33ab49633c5c.zip
Merge pull request #840 from karalabe/throttled-dialing
p2p: throttled handshakes
Diffstat (limited to 'cmd/utils')
-rw-r--r--cmd/utils/flags.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 460068d91..a2ff05440 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -197,6 +197,11 @@ var (
Usage: "Maximum number of network peers (network disabled if set to 0)",
Value: 16,
}
+ MaxPendingPeersFlag = cli.IntFlag{
+ Name: "maxpendpeers",
+ Usage: "Maximum number of pending connection attempts (defaults used if set to 0)",
+ Value: 0,
+ }
ListenPortFlag = cli.IntFlag{
Name: "port",
Usage: "Network listening port",
@@ -292,6 +297,7 @@ func MakeEthConfig(clientID, version string, ctx *cli.Context) *eth.Config {
AccountManager: GetAccountManager(ctx),
VmDebug: ctx.GlobalBool(VMDebugFlag.Name),
MaxPeers: ctx.GlobalInt(MaxPeersFlag.Name),
+ MaxPendingPeers: ctx.GlobalInt(MaxPendingPeersFlag.Name),
Port: ctx.GlobalString(ListenPortFlag.Name),
NAT: GetNAT(ctx),
NatSpec: ctx.GlobalBool(NatspecEnabledFlag.Name),