diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-09-06 00:18:28 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-09-06 00:18:28 +0800 |
commit | b0ca1b67ce6e297fe02281d01a486225bbf385f8 (patch) | |
tree | 2a0e091700f33993e5851e79e2f3b0c4881a47fc /cmd/utils | |
parent | 03d00361f5c91bedee27e7b5853523103750de3c (diff) | |
download | go-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/utils')
-rw-r--r-- | cmd/utils/flags.go | 4 |
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) } |