connection tracking

This commit is contained in:
tycho garen
2022-06-15 10:06:22 -04:00
parent 13f6493813
commit 664e1a097e
2 changed files with 65 additions and 19 deletions

View File

@@ -498,6 +498,7 @@ func createPeerManager(
options := p2p.PeerManagerOptions{
SelfAddress: selfAddr,
MaxConnected: maxConns,
MaxOutgoingConnections: maxConns / 2,
MaxConnectedUpgrade: maxUpgradeConns,
MaxFailedDialAttempts: 1024,
MaxPeers: maxUpgradeConns + 2*maxConns,