mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-22 11:18:25 +00:00
pass max peers to builder
This commit is contained in:
parent
4ed2e34a9e
commit
3e3137ec14
@ -1538,10 +1538,11 @@ proc newBeaconSwitch*(config: BeaconNodeConf, seckey: PrivateKey,
|
||||
.withPrivateKey(seckey)
|
||||
.withAddress(address)
|
||||
.withRng(rng)
|
||||
.withMplex(5.minutes, 5.minutes)
|
||||
.withTcpTransport({ServerFlags.ReuseAddr})
|
||||
.withNoise()
|
||||
.withMplex(5.minutes, 5.minutes)
|
||||
.withMaxConnections(config.maxPeers)
|
||||
.withAgentVersion(config.agentString)
|
||||
.withTcpTransport({ServerFlags.ReuseAddr})
|
||||
.build()
|
||||
except CatchableError as exc: raise exc
|
||||
except Exception as exc: # TODO fix libp2p
|
||||
|
Loading…
x
Reference in New Issue
Block a user