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:
3 files changed
+31
-7
No files matched your search
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user