diff options
Diffstat (limited to 'cmd/utils/flags.go')
-rw-r--r-- | cmd/utils/flags.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 96e8b72ec..ff78a0fcc 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -814,6 +814,9 @@ func SetP2PConfig(ctx *cli.Context, cfg *p2p.Config) { if ctx.GlobalIsSet(MaxPeersFlag.Name) { cfg.MaxPeers = ctx.GlobalInt(MaxPeersFlag.Name) + if lightServer && !ctx.GlobalIsSet(LightPeersFlag.Name) { + cfg.MaxPeers += lightPeers + } } else { if lightServer { cfg.MaxPeers += lightPeers |