mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 14:11:04 +02:00
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:
committed by
Olaoluwa Osuntokun
parent
bc6008f854
commit
bd99924383
@@ -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