2020-08-25 04:15:48 +02:00
|
|
|
#include <bitcoin/tx.h>
|
2021-12-23 21:16:35 +01:00
|
|
|
#include <common/bip32.h>
|
2020-09-09 09:20:53 +02:00
|
|
|
#include <common/channel_id.h>
|
2020-08-25 04:15:48 +02:00
|
|
|
#include <common/cryptomsg.h>
|
|
|
|
#include <common/htlc_wire.h>
|
2021-09-15 03:00:14 +02:00
|
|
|
#include <common/status_wire.h>
|
2021-12-23 21:16:35 +01:00
|
|
|
#include <wally_bip32.h>
|
2020-08-25 04:15:48 +02:00
|
|
|
# Begin! (passes peer fd, gossipd-client fd)
|
|
|
|
msgtype,closingd_init,2001
|
|
|
|
msgdata,closingd_init,chainparams,chainparams,
|
2020-09-09 09:20:53 +02:00
|
|
|
msgdata,closingd_init,channel_id,channel_id,
|
2021-10-13 05:45:36 +02:00
|
|
|
msgdata,closingd_init,funding,bitcoin_outpoint,
|
2020-08-25 04:15:48 +02:00
|
|
|
msgdata,closingd_init,funding_satoshi,amount_sat,
|
|
|
|
msgdata,closingd_init,local_fundingkey,pubkey,
|
|
|
|
msgdata,closingd_init,remote_fundingkey,pubkey,
|
|
|
|
msgdata,closingd_init,opener,enum side,
|
|
|
|
msgdata,closingd_init,local_sat,amount_sat,
|
|
|
|
msgdata,closingd_init,remote_sat,amount_sat,
|
|
|
|
msgdata,closingd_init,our_dust_limit,amount_sat,
|
2021-06-28 07:08:10 +02:00
|
|
|
msgdata,closingd_init,min_feerate_perksipa,u32,
|
|
|
|
msgdata,closingd_init,preferred_feerate_perksipa,u32,
|
2021-09-08 06:40:29 +02:00
|
|
|
msgdata,closingd_init,max_feerate_perksipa,?u32,
|
2020-08-25 04:15:48 +02:00
|
|
|
msgdata,closingd_init,fee_limit_satoshi,amount_sat,
|
2021-12-23 21:16:35 +01:00
|
|
|
msgdata,closingd_init,local_wallet_index,?u32,
|
|
|
|
msgdata,closingd_init,local_wallet_ext_key,?ext_key,
|
2020-08-25 04:15:48 +02:00
|
|
|
msgdata,closingd_init,local_scriptpubkey_len,u16,
|
|
|
|
msgdata,closingd_init,local_scriptpubkey,u8,local_scriptpubkey_len
|
|
|
|
msgdata,closingd_init,remote_scriptpubkey_len,u16,
|
|
|
|
msgdata,closingd_init,remote_scriptpubkey,u8,remote_scriptpubkey_len
|
|
|
|
msgdata,closingd_init,fee_negotiation_step,u64,
|
|
|
|
msgdata,closingd_init,fee_negotiation_step_unit,u8,
|
2021-09-08 06:40:10 +02:00
|
|
|
msgdata,closingd_init,use_quickclose,bool,
|
2021-03-15 21:25:54 +01:00
|
|
|
msgdata,closingd_init,shutdown_wrong_funding,?bitcoin_outpoint,
|
2020-08-25 04:15:48 +02:00
|
|
|
|
2021-09-15 03:00:14 +02:00
|
|
|
# Message for any commands waiting.
|
|
|
|
msgtype,closingd_notification,2003
|
|
|
|
msgdata,closingd_notification,level,enum log_level,
|
|
|
|
msgdata,closingd_notification,message,wirestring,
|
|
|
|
|
2020-08-25 04:15:48 +02:00
|
|
|
# We received an offer, save signature.
|
|
|
|
msgtype,closingd_received_signature,2002
|
|
|
|
msgdata,closingd_received_signature,signature,bitcoin_signature,
|
|
|
|
msgdata,closingd_received_signature,tx,bitcoin_tx,
|
|
|
|
|
|
|
|
msgtype,closingd_received_signature_reply,2102
|
|
|
|
msgdata,closingd_received_signature_reply,closing_txid,bitcoin_txid,
|
|
|
|
|
|
|
|
# Negotiations complete, we're exiting.
|
|
|
|
msgtype,closingd_complete,2004
|