mirror of
https://github.com/ElementsProject/lightning.git
synced 2026-08-13 12:32:55 +02:00
in case of a reboot the tx will be broadcast as usual. simple_close_control.c: add delay logic to `drop_to_chain` after 1 hour. test_closing.py: add test to verify the heuristic is being applied.
2 KiB
2 KiB
| 1 | #include <bitcoin/signature.h> |
|---|---|
| 2 | #include <bitcoin/tx.h> |
| 3 | #include <bitcoin/pubkey.h> |
| 4 | #include <common/bip32.h> |
| 5 | #include <common/channel_id.h> |
| 6 | #include <common/cryptomsg.h> |
| 7 | #include <common/status_wire.h> |
| 8 | #include <common/htlc.h> |
| 9 | #include <common/htlc_wire.h> |
| 10 | #include <wally_bip32.h> |
| 11 | # Begin! (passes peer_fd and hsm_fd) |
| 12 | # simpleclosed tells master it got a valid closing_sig for our closing_complete; |
| 13 | # master should broadcast this tx. |
| 14 | # Master replies with the txid (after storing/broadcasting). |
| 15 | # simpleclosed tells master it signed the peer's closing tx (as the closee); |