lnd: only restrict slots for inbound connections

For outbound connections, since they are initialized by the users, we
can relax on the restriction. A future global limit may be added - as
for now, we will let them to be managed by the users.
This commit is contained in:
yyforyongyu
2025-06-03 20:06:30 +08:00
committed by Olaoluwa Osuntokun
parent bc6008f854
commit bd99924383
3 changed files with 31 additions and 7 deletions

View File

@@ -24,7 +24,7 @@ func assertInboundConnection(t *testing.T, a *accessMan,
require.NoError(t, err)
require.Equal(t, status, peerAccess)
a.addPeerAccess(remotePub, peerAccess)
a.addPeerAccess(remotePub, peerAccess, true)
peerScore, ok := a.peerScores[remotePubSer]
require.True(t, ok)
require.Equal(t, status, peerScore.state)