mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-05 17:05:50 +02:00
accessman: make sure to decrement PendingOpenCount
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
d9e3412ed5
commit
0b0513d88c
@@ -440,6 +440,8 @@ func (a *accessMan) newOpenChan(remotePub *btcec.PublicKey) error {
|
||||
}
|
||||
|
||||
peerCount.HasOpenOrClosedChan = true
|
||||
peerCount.PendingOpenCount -= 1
|
||||
|
||||
a.peerCounts[peerMapKey] = peerCount
|
||||
|
||||
newStatus := peerSlotStatus{
|
||||
|
Reference in New Issue
Block a user