aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-09-06 00:18:28 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-09-06 00:18:28 +0800
commitb0ca1b67ce6e297fe02281d01a486225bbf385f8 (patch)
tree2a0e091700f33993e5851e79e2f3b0c4881a47fc /cmd
parent03d00361f5c91bedee27e7b5853523103750de3c (diff)
downloadgo-tangerine-b0ca1b67ce6e297fe02281d01a486225bbf385f8.tar
go-tangerine-b0ca1b67ce6e297fe02281d01a486225bbf385f8.tar.gz
go-tangerine-b0ca1b67ce6e297fe02281d01a486225bbf385f8.tar.bz2
go-tangerine-b0ca1b67ce6e297fe02281d01a486225bbf385f8.tar.lz
go-tangerine-b0ca1b67ce6e297fe02281d01a486225bbf385f8.tar.xz
go-tangerine-b0ca1b67ce6e297fe02281d01a486225bbf385f8.tar.zst
go-tangerine-b0ca1b67ce6e297fe02281d01a486225bbf385f8.zip
eth: use maxpeers from p2p layer instead of extra config
Diffstat (limited to 'cmd')
-rw-r--r--cmd/utils/flags.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 37ccd06ef..5ab6047e8 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -949,10 +949,6 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *eth.Config) {
cfg.NetworkId = ctx.GlobalUint64(NetworkIdFlag.Name)
}
- // Ethereum needs to know maxPeers to calculate the light server peer ratio.
- // TODO(fjl): ensure Ethereum can get MaxPeers from node.
- cfg.MaxPeers = ctx.GlobalInt(MaxPeersFlag.Name)
-
if ctx.GlobalIsSet(CacheFlag.Name) {
cfg.DatabaseCache = ctx.GlobalInt(CacheFlag.Name)
}