mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 15:11:09 +02:00
peer: don't load channels that have had commitment broadcasted
This commit is contained in:
6
peer.go
6
peer.go
@@ -329,9 +329,9 @@ func (p *peer) loadActiveChannels(chans []*channeldb.OpenChannel) error {
|
|||||||
|
|
||||||
// Skip adding any permanently irreconcilable channels to the
|
// Skip adding any permanently irreconcilable channels to the
|
||||||
// htlcswitch.
|
// htlcswitch.
|
||||||
if dbChan.IsBorked {
|
if dbChan.ChanStatus != channeldb.Default {
|
||||||
peerLog.Warnf("ChannelPoint(%v) is borked, won't "+
|
peerLog.Warnf("ChannelPoint(%v) has status %v, won't "+
|
||||||
"start.", chanPoint)
|
"start.", chanPoint, dbChan.ChanStatus)
|
||||||
lnChan.Stop()
|
lnChan.Stop()
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user