channeld: exit after shutdown when no more HTLCs.

Ready for the introduction of closingd.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-07-04 10:17:32 +09:30
parent 80886cda8a
commit 6fa90c926a
6 changed files with 129 additions and 5 deletions

View File

@@ -371,6 +371,12 @@ bool channel_sending_revoke_and_ack(struct channel *channel);
*/
bool channel_awaiting_revoke_and_ack(const struct channel *channel);
/**
* channel_has_htlcs: are there any HTLCs at all in channel?
* @channel: the channel
*/
bool channel_has_htlcs(const struct channel *channel);
/**
* channel_force_htlcs: force these htlcs into the (new) channel
* @channel: the channel