2015-06-08 07:14:47 +02:00
|
|
|
#ifndef LIGHTNING_CLOSE_TX_H
|
|
|
|
#define LIGHTNING_CLOSE_TX_H
|
2016-01-21 21:08:08 +01:00
|
|
|
#include "config.h"
|
2015-06-08 07:14:47 +02:00
|
|
|
#include "lightning.pb-c.h"
|
2016-01-21 21:08:08 +01:00
|
|
|
#include <ccan/tal/tal.h>
|
2015-06-08 07:14:47 +02:00
|
|
|
|
|
|
|
struct sha256_double;
|
2016-01-21 21:15:27 +01:00
|
|
|
struct pubkey;
|
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,
|
2016-04-24 12:31:52 +02:00
|
|
|
const u8 *our_script,
|
|
|
|
const u8 *their_script,
|
2016-01-21 21:11:47 +01:00
|
|
|
const struct sha256_double *anchor_txid,
|
|
|
|
unsigned int anchor_index,
|
|
|
|
u64 anchor_satoshis,
|
2015-07-29 08:44:28 +02:00
|
|
|
uint64_t to_us, uint64_t to_them);
|
2015-06-08 07:14:47 +02:00
|
|
|
#endif
|