cmd/utils: print log message with max peer count

This commit is contained in:
Zsolt Felfoldi 2018-01-26 11:09:02 +01:00
parent 7e5f7f0b6e
commit 7c62c6772c

View file

@ -1059,6 +1059,8 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *eth.Config, p2pcfg *p
cfg.LightPeers = lightPeers
p2pcfg.MaxPeers = ethPeers + lightPeers
log.Info("Maximum peer count", "ETH", cfg.EthPeers, "LES", cfg.LightPeers, "total", p2pcfg.MaxPeers)
if ctx.GlobalIsSet(CacheFlag.Name) {
cfg.DatabaseCache = ctx.GlobalInt(CacheFlag.Name)
}