mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
peer: implement committed_to_htlcs().
Simply count how many HTLCs are in our current funding state. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -674,8 +674,8 @@ const struct htlc *peer_tx_revealed_r_value(struct peer *peer,
|
||||
|
||||
bool committed_to_htlcs(const struct peer *peer)
|
||||
{
|
||||
/* FIXME */
|
||||
return false;
|
||||
return tal_count(peer->cstate->a.htlcs) != 0
|
||||
|| tal_count(peer->cstate->b.htlcs) != 0;
|
||||
}
|
||||
|
||||
/* Create a bitcoin close tx. */
|
||||
|
||||
Reference in New Issue
Block a user