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 committed 2025-06-18 17:19:10 +08:00
1 parent 00db8c6359
commit 0c5bb49561
3 files changed
+31 -7

No files matched your search

+1 -1
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)