channeld: add a message to read if we only want to reestablish.

This supports reestablish on a closed channel: we tell channeld to
respond to the reestablish message appropriately, then close the
channel.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2021-06-15 14:37:10 +09:30
parent 6afb9f8fe7
commit 9929d6383a
14 changed files with 64 additions and 25 deletions

View File

@@ -1549,7 +1549,7 @@ static void handle_channel_locked(struct subd *dualopend,
wallet_channel_clear_inflights(dualopend->ld->wallet, channel);
/* FIXME: LND sigs/update_fee msgs? */
peer_start_channeld(channel, pps, NULL, false);
peer_start_channeld(channel, pps, NULL, false, NULL);
return;
}