2017-08-28 18:06:01 +02:00
|
|
|
#ifndef LIGHTNING_COMMON_CLOSE_TX_H
|
|
|
|
#define LIGHTNING_COMMON_CLOSE_TX_H
|
2016-01-21 21:08:08 +01:00
|
|
|
#include "config.h"
|
2019-07-30 16:14:43 +02:00
|
|
|
#include <bitcoin/tx.h>
|
2015-06-08 07:14:47 +02:00
|
|
|
|
2021-12-23 21:16:35 +01:00
|
|
|
struct ext_key;
|
|
|
|
|
2015-06-08 07:14:47 +02:00
|
|
|
/* Create close tx to spend the anchor tx output; doesn't fill in
|
|
|
|
* input scriptsig. */
|
2016-12-02 08:42:58 +01:00
|
|
|
struct bitcoin_tx *create_close_tx(const tal_t *ctx,
|
2019-07-30 16:14:43 +02:00
|
|
|
const struct chainparams *chainparams,
|
2021-12-23 21:16:35 +01:00
|
|
|
u32 *local_wallet_index,
|
|
|
|
const struct ext_key *local_wallet_ext_key,
|
2016-04-24 12:31:52 +02:00
|
|
|
const u8 *our_script,
|
|
|
|
const u8 *their_script,
|
2020-05-21 21:46:19 +02:00
|
|
|
const u8 *funding_wscript,
|
2021-10-13 05:45:36 +02:00
|
|
|
const struct bitcoin_outpoint *funding,
|
|
|
|
struct amount_sat funding_sats,
|
2019-02-21 04:45:55 +01:00
|
|
|
struct amount_sat to_us,
|
|
|
|
struct amount_sat to_them,
|
|
|
|
struct amount_sat dust_limit);
|
2018-03-22 11:36:25 +01:00
|
|
|
#endif /* LIGHTNING_COMMON_CLOSE_TX_H */
|