peer: don't load channels that have had commitment broadcasted

This commit is contained in:
Johan T. Halseth 2018-04-03 21:53:22 +02:00
parent 70e8087731
commit bd4e717971
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -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
}