core-lightning/closingd/closingd_wire.csv
Rusty Russell 1752616386 closingd: allow higher closing fee if anchor_outputs.
This follows https://github.com/lightningnetwork/lightning-rfc/pull/847.

For anchor_outputs, we pass down a max_feerate to closingd, and set the
fee ceiling to MAX.  It uses that to estimate the desired closing fee.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-EXPERIMENTAL: Anchor output mutual close allow a fee higher than the final commitment transaction (as per lightning-rfc #847)
2021-09-09 12:04:48 +09:30

1.8 KiB

1#include <bitcoin/tx.h>
2#include <common/channel_id.h>
3#include <common/cryptomsg.h>
4#include <common/htlc_wire.h>
5#include <common/per_peer_state.h>
6# Begin! (passes peer fd, gossipd-client fd)
7msgtype,closingd_init,2001
8msgdata,closingd_init,chainparams,chainparams,
9msgdata,closingd_init,pps,per_peer_state,
10msgdata,closingd_init,channel_id,channel_id,
11msgdata,closingd_init,funding_txid,bitcoin_txid,
12msgdata,closingd_init,funding_txout,u16,
13msgdata,closingd_init,funding_satoshi,amount_sat,
14msgdata,closingd_init,local_fundingkey,pubkey,
15msgdata,closingd_init,remote_fundingkey,pubkey,
16msgdata,closingd_init,opener,enum side,
17msgdata,closingd_init,local_sat,amount_sat,
18msgdata,closingd_init,remote_sat,amount_sat,
19msgdata,closingd_init,our_dust_limit,amount_sat,
20msgdata,closingd_init,min_feerate_perksipa,u32,
21msgdata,closingd_init,preferred_feerate_perksipa,u32,
22msgdata,closingd_init,max_feerate_perksipa,?u32,
23msgdata,closingd_init,fee_limit_satoshi,amount_sat,
24msgdata,closingd_init,local_scriptpubkey_len,u16,
25msgdata,closingd_init,local_scriptpubkey,u8,local_scriptpubkey_len
26msgdata,closingd_init,remote_scriptpubkey_len,u16,
27msgdata,closingd_init,remote_scriptpubkey,u8,remote_scriptpubkey_len
28msgdata,closingd_init,fee_negotiation_step,u64,
29msgdata,closingd_init,fee_negotiation_step_unit,u8,
30msgdata,closingd_init,use_quickclose,bool,
31msgdata,closingd_init,dev_fast_gossip,bool,
32msgdata,closingd_init,shutdown_wrong_funding,?bitcoin_outpoint,
33# We received an offer, save signature.
34msgtype,closingd_received_signature,2002
35msgdata,closingd_received_signature,signature,bitcoin_signature,
36msgdata,closingd_received_signature,tx,bitcoin_tx,
37msgtype,closingd_received_signature_reply,2102
38msgdata,closingd_received_signature_reply,closing_txid,bitcoin_txid,
39# Negotiations complete, we're exiting.
40msgtype,closingd_complete,2004