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