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/chainparams.h>
|
|
|
|
#include <bitcoin/tx.h>
|
2017-07-04 10:19:43 +09:30
|
|
|
#include <ccan/short_types/short_types.h>
|
2016-01-22 06:38:08 +10:30
|
|
|
#include <ccan/tal/tal.h>
|
2019-02-21 14:15:55 +10:30
|
|
|
#include <common/amount.h>
|
2015-06-08 14:44:47 +09:30
|
|
|
|
2016-01-22 06:45:27 +10:30
|
|
|
struct pubkey;
|
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,
|
2016-04-24 20:01:52 +09:30
|
|
|
const u8 *our_script,
|
|
|
|
const u8 *their_script,
|
2017-12-18 17:11:52 +10:30
|
|
|
const struct bitcoin_txid *anchor_txid,
|
2016-01-22 06:41:47 +10:30
|
|
|
unsigned int anchor_index,
|
2019-02-21 14:15:55 +10:30
|
|
|
struct amount_sat funding,
|
|
|
|
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 */
|