cln/closingd/simpleclosed_wire.csv
Níckolas Goline da67bf845f
simpleclosed.c: add heuristic to delay our tx broadcast if our amount is less AND our fee is less than our peer's amount and fee
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.
2026-07-02 13:30:17 -03:00

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);