diff --git a/beacon_chain/eth2_network.nim b/beacon_chain/eth2_network.nim index 33400afcd..522eea3b4 100644 --- a/beacon_chain/eth2_network.nim +++ b/beacon_chain/eth2_network.nim @@ -1526,7 +1526,13 @@ proc newBeaconSwitch*(conf: BeaconNodeConf, seckey: PrivateKey, let identify = newIdentify(peerInfo) - newSwitch(peerInfo, transports, identify, muxers, secureManagers) + newSwitch( + peerInfo, + transports, + identify, + muxers, + secureManagers, + maxConnections = conf.maxPeers) proc createEth2Node*(rng: ref BrHmacDrbgContext, conf: BeaconNodeConf, diff --git a/vendor/nim-libp2p b/vendor/nim-libp2p index 0959877b2..1d77d37f1 160000 --- a/vendor/nim-libp2p +++ b/vendor/nim-libp2p @@ -1 +1 @@ -Subproject commit 0959877b29be802b857cb10ab194f5cf29e3649f +Subproject commit 1d77d37f17a8d4b9bbafb83eae69790dad48b4c5