core-lightning/onchaind
Rusty Russell 956e6c4055 lightningd: handle first case of onchaind handing a tx to us to create.
We add code for the case of spending a (timelocked) to-us output of an
HTLC output, so lightningd can do it (rather than onchaind doing all
the work itself).

onchaind still needs to know whether we bothered to create the tx
(fees might have caused it to evaporate, so it should consider it
immediately resolved rather than waiting for it), and what the
witnesses were, and which parts of the witnesses were signatures (as
these parts might change, with RBF or in future, combining other txs).

The inputs (known to onchaind) and the witnesses (told by lightningd)
uniquely identify the spend for the purposes of onchaind.  In
particular, they definitely distinguish HTLC-timeout and HTLC-success
cases.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2023-04-07 11:49:09 +09:30
..
test onchaind: helper to read and queue unwanted messages. 2023-04-06 09:01:48 +09:30
Makefile onchaind/onchaind_wire.c duplicated in ONCHAIND_SRC 2022-09-23 14:40:29 +09:30
onchain_types.h onchaind: recognize (and ignore) anchor outputs. 2020-08-14 11:51:14 +09:30
onchaind_wire.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
onchaind_wire.csv lightningd: handle first case of onchaind handing a tx to us to create. 2023-04-07 11:49:09 +09:30
onchaind_wire.h closingd: convert to new wire generation style. 2020-08-25 12:53:13 +09:30
onchaind.c lightningd: handle first case of onchaind handing a tx to us to create. 2023-04-07 11:49:09 +09:30