2017-08-28 18:05:01 +02:00
|
|
|
#include <common/cryptomsg.h>
|
|
|
|
#include <common/htlc_wire.h>
|
2019-06-03 20:11:25 +02:00
|
|
|
#include <common/per_peer_state.h>
|
2017-07-04 02:49:43 +02:00
|
|
|
# Begin! (passes peer fd, gossipd-client fd)
|
2019-07-24 00:51:11 +02:00
|
|
|
msgtype,closing_init,2001
|
2019-09-25 22:38:45 +02:00
|
|
|
msgdata,closing_init,chainparams,chainparams,
|
2019-07-24 00:51:11 +02:00
|
|
|
msgdata,closing_init,pps,per_peer_state,
|
|
|
|
msgdata,closing_init,funding_txid,bitcoin_txid,
|
|
|
|
msgdata,closing_init,funding_txout,u16,
|
|
|
|
msgdata,closing_init,funding_satoshi,amount_sat,
|
|
|
|
msgdata,closing_init,local_fundingkey,pubkey,
|
|
|
|
msgdata,closing_init,remote_fundingkey,pubkey,
|
2019-07-24 06:20:04 +02:00
|
|
|
msgdata,closing_init,funder,enum side,
|
2019-07-24 00:51:11 +02:00
|
|
|
msgdata,closing_init,local_sat,amount_sat,
|
|
|
|
msgdata,closing_init,remote_sat,amount_sat,
|
|
|
|
msgdata,closing_init,our_dust_limit,amount_sat,
|
|
|
|
msgdata,closing_init,min_fee_satoshi,amount_sat,
|
|
|
|
msgdata,closing_init,fee_limit_satoshi,amount_sat,
|
|
|
|
msgdata,closing_init,initial_fee_satoshi,amount_sat,
|
|
|
|
msgdata,closing_init,local_scriptpubkey_len,u16,
|
|
|
|
msgdata,closing_init,local_scriptpubkey,u8,local_scriptpubkey_len
|
|
|
|
msgdata,closing_init,remote_scriptpubkey_len,u16,
|
|
|
|
msgdata,closing_init,remote_scriptpubkey,u8,remote_scriptpubkey_len
|
|
|
|
msgdata,closing_init,reconnected,bool,
|
|
|
|
msgdata,closing_init,next_index_local,u64,
|
|
|
|
msgdata,closing_init,next_index_remote,u64,
|
|
|
|
msgdata,closing_init,revocations_received,u64,
|
|
|
|
msgdata,closing_init,channel_reestablish_len,u16,
|
|
|
|
msgdata,closing_init,channel_reestablish,u8,channel_reestablish_len
|
|
|
|
msgdata,closing_init,last_remote_secret,secret,
|
2019-09-18 03:05:05 +02:00
|
|
|
msgdata,closing_init,dev_fast_gossip,bool,
|
2017-07-04 02:49:43 +02:00
|
|
|
|
|
|
|
# We received an offer, save signature.
|
2019-07-24 00:51:11 +02:00
|
|
|
msgtype,closing_received_signature,2002
|
|
|
|
msgdata,closing_received_signature,signature,bitcoin_signature,
|
|
|
|
msgdata,closing_received_signature,tx,bitcoin_tx,
|
2017-07-04 02:49:43 +02:00
|
|
|
|
2019-07-24 00:51:11 +02:00
|
|
|
msgtype,closing_received_signature_reply,2102
|
|
|
|
msgdata,closing_received_signature_reply,closing_txid,bitcoin_txid,
|
2017-07-04 02:49:43 +02:00
|
|
|
|
|
|
|
# Negotiations complete, we're exiting.
|
2019-07-24 00:51:11 +02:00
|
|
|
msgtype,closing_complete,2004
|