2015-06-08 07:14:47 +02:00
|
|
|
#ifndef LIGHTNING_CLOSE_TX_H
|
|
|
|
#define LIGHTNING_CLOSE_TX_H
|
|
|
|
#include <ccan/tal/tal.h>
|
|
|
|
#include "lightning.pb-c.h"
|
|
|
|
|
|
|
|
struct sha256_double;
|
|
|
|
|
|
|
|
/* Create close tx to spend the anchor tx output; doesn't fill in
|
|
|
|
* input scriptsig. */
|
|
|
|
struct bitcoin_tx *create_close_tx(const tal_t *ctx,
|
|
|
|
OpenChannel *ours,
|
|
|
|
OpenChannel *theirs,
|
2015-06-09 06:59:04 +02:00
|
|
|
int64_t delta,
|
2015-06-08 07:14:47 +02:00
|
|
|
const struct sha256_double *anchor_txid,
|
2015-07-01 07:12:30 +02:00
|
|
|
uint64_t input_amount,
|
2015-06-08 07:14:47 +02:00
|
|
|
unsigned int anchor_output);
|
|
|
|
#endif
|