connection tracking

This commit is contained in:
tycho garen
2022-06-15 10:06:22 -04:00
parent 0b7cfa77a3
commit 95bc03927c
3 changed files with 66 additions and 19 deletions
+1
View File
@@ -229,6 +229,7 @@ func createPeerManager(
options := p2p.PeerManagerOptions{
SelfAddress: selfAddr,
MaxConnected: maxConns,
MaxOutgoingConnections: maxConns / 2,
MaxConnectedUpgrade: maxUpgradeConns,
MaxFailedDialAttempts: 1024,
MaxPeers: maxUpgradeConns + 2*maxConns,