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:
2 files changed
+28
-15
No files matched your search
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user