Forward maxPeers config to EthereumNode minPeers

This commit is contained in:
kdeme 2019-06-05 15:18:26 +02:00 committed by zah
parent 19e7d70099
commit 46a9d8e79d
1 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,8 @@ proc start(): NimbusObject =
nimbus.ethNode = newEthereumNode(keypair, address, conf.net.networkId,
nil, nimbusClientId,
addAllCapabilities = false)
addAllCapabilities = false,
minPeers = conf.net.maxPeers)
# Add protocol capabilities based on protocol flags
if ProtocolFlags.Eth in conf.net.protocols:
nimbus.ethNode.addCapability eth