mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
peer: don't load channels that have had commitment broadcasted
This commit is contained in:
parent
70e8087731
commit
bd4e717971
1 changed files with 3 additions and 3 deletions
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
|
||||
// htlcswitch.
|
||||
if dbChan.IsBorked {
|
||||
peerLog.Warnf("ChannelPoint(%v) is borked, won't "+
|
||||
"start.", chanPoint)
|
||||
if dbChan.ChanStatus != channeldb.Default {
|
||||
peerLog.Warnf("ChannelPoint(%v) has status %v, won't "+
|
||||
"start.", chanPoint, dbChan.ChanStatus)
|
||||
lnChan.Stop()
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue