mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-11 09:42:58 +02:00
accessman+lnd: check if a peer is found in peerScores
We need to also check this map to make sure the peer exists or not.
This commit is contained in:
@@ -1889,6 +1889,8 @@ func newServer(_ context.Context, cfg *Config, listenAddrs []net.Addr,
|
||||
// connection requests when we call NewListener.
|
||||
listeners[i], err = brontide.NewListener(
|
||||
nodeKeyECDH, listenAddr.String(),
|
||||
// TODO(yy): remove this check and unify the inbound
|
||||
// connection check inside `InboundPeerConnected`.
|
||||
s.peerAccessMan.checkIncomingConnBanScore,
|
||||
)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user