pass max peers to libp2p (#2265)

This commit is contained in:
Dmitriy Ryajov 2021-01-26 03:35:22 -06:00 committed by GitHub
parent 70a03658e3
commit 64e4d74f87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -1526,7 +1526,13 @@ proc newBeaconSwitch*(conf: BeaconNodeConf, seckey: PrivateKey,
let identify = newIdentify(peerInfo) let identify = newIdentify(peerInfo)
newSwitch(peerInfo, transports, identify, muxers, secureManagers) newSwitch(
peerInfo,
transports,
identify,
muxers,
secureManagers,
maxConnections = conf.maxPeers)
proc createEth2Node*(rng: ref BrHmacDrbgContext, proc createEth2Node*(rng: ref BrHmacDrbgContext,
conf: BeaconNodeConf, conf: BeaconNodeConf,

2
vendor/nim-libp2p vendored

@ -1 +1 @@
Subproject commit 0959877b29be802b857cb10ab194f5cf29e3649f Subproject commit 1d77d37f17a8d4b9bbafb83eae69790dad48b4c5