contractcourt: only look for local force close for non-recovered channel

In this commit, we modify the main `closeObserver` dispatch loop to only
look for the local force close if we didn't recover the channel. We do
this, as for a recovered channel, it isn't possible for us to force
close from a recovered channel.
This commit is contained in:
Olaoluwa Osuntokun committed 2019-03-28 17:53:59 -07:00
1 parent b491488c6f
commit c722f2c064
2 files changed
+28 -15

No files matched your search

+1 -1
View File
@@ -3504,7 +3504,7 @@ func (lc *LightningChannel) ProcessChanSyncMsg(
// Alternatively, if their height is two beyond what we know their best
// height to be, then they're holding onto two commitments, and the
// highest unrevoked point it their next revocation.
// highest unrevoked point is their next revocation.
//
// TODO(roasbeef): verify this in the spec...
case msg.NextLocalCommitHeight == remoteTailHeight+2: