mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43:47 +00:00
cmd/utils: print log message with max peer count
This commit is contained in:
parent
7e5f7f0b6e
commit
7c62c6772c
1 changed files with 2 additions and 0 deletions
|
|
@ -1059,6 +1059,8 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *eth.Config, p2pcfg *p
|
||||||
cfg.LightPeers = lightPeers
|
cfg.LightPeers = lightPeers
|
||||||
p2pcfg.MaxPeers = ethPeers + lightPeers
|
p2pcfg.MaxPeers = ethPeers + lightPeers
|
||||||
|
|
||||||
|
log.Info("Maximum peer count", "ETH", cfg.EthPeers, "LES", cfg.LightPeers, "total", p2pcfg.MaxPeers)
|
||||||
|
|
||||||
if ctx.GlobalIsSet(CacheFlag.Name) {
|
if ctx.GlobalIsSet(CacheFlag.Name) {
|
||||||
cfg.DatabaseCache = ctx.GlobalInt(CacheFlag.Name)
|
cfg.DatabaseCache = ctx.GlobalInt(CacheFlag.Name)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue