Skip to content

Commit

Permalink
peer: don't load channels that have had commitment broadcasted
Browse files Browse the repository at this point in the history
  • Loading branch information
halseth committed Apr 25, 2018
1 parent 70e8087 commit bd4e717
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit bd4e717

Please sign in to comment.