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;
|
|
|
|
|
|
|
|
/* 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-07-29 08:44:28 +02:00
|
|
|
OpenAnchor *anchor,
|
|
|
|
uint64_t to_us, uint64_t to_them);
|
2015-06-08 07:14:47 +02:00
|
|
|
#endif
|