cmd/utils: use eth.DefaultConfig for EthPeers and LightPeers

This commit is contained in:
Zsolt Felfoldi 2018-01-21 22:53:38 +01:00
parent bc6dd8e3aa
commit 4933496fb2

View file

@ -174,7 +174,7 @@ var (
EthPeersFlag = cli.IntFlag{ EthPeersFlag = cli.IntFlag{
Name: "ethpeers", Name: "ethpeers",
Usage: "Maximum number of ETH peers", Usage: "Maximum number of ETH peers",
Value: 25, Value: eth.DefaultConfig.EthPeers,
} }
LightServFlag = cli.IntFlag{ LightServFlag = cli.IntFlag{
Name: "lightserv", Name: "lightserv",
@ -184,7 +184,7 @@ var (
LightPeersFlag = cli.IntFlag{ LightPeersFlag = cli.IntFlag{
Name: "lightpeers", Name: "lightpeers",
Usage: "Maximum number of LES client peers", Usage: "Maximum number of LES client peers",
Value: 100, Value: eth.DefaultConfig.LightPeers,
} }
LightKDFFlag = cli.BoolFlag{ LightKDFFlag = cli.BoolFlag{
Name: "lightkdf", Name: "lightkdf",