2017-08-29 01:36:01 +09:30
|
|
|
#ifndef LIGHTNING_COMMON_CLOSE_TX_H
|
|
|
|
#define LIGHTNING_COMMON_CLOSE_TX_H
|
2016-01-22 06:38:08 +10:30
|
|
|
#include "config.h"
|
2019-07-30 16:14:43 +02:00
|
|
|
#include <bitcoin/tx.h>
|
2015-06-08 14:44:47 +09:30
|
|
|
|
2021-12-23 12:16:35 -08:00
|
|
|
struct ext_key;
|
|
|
|
|
2015-06-08 14:44:47 +09:30
|
|
|
/* Create close tx to spend the anchor tx output; doesn't fill in
|
|
|
|
* input scriptsig. */
|
2016-12-02 18:12:58 +10:30
|
|
|
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 12:16:35 -08:00
|
|
|
u32 *local_wallet_index,
|
|
|
|
const struct ext_key *local_wallet_ext_key,
|
2016-04-24 20:01:52 +09:30
|
|
|
const u8 *our_script,
|
|
|
|
const u8 *their_script,
|
2020-05-21 14:46:19 -05:00
|
|
|
const u8 *funding_wscript,
|
2021-10-13 14:15:36 +10:30
|
|
|
const struct bitcoin_outpoint *funding,
|
|
|
|
struct amount_sat funding_sats,
|
2019-02-21 14:15:55 +10:30
|
|
|
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 */
|