2015-05-30 13:14:00 +02:00
|
|
|
#ifndef LIGHTNING_COMMIT_TX_H
|
|
|
|
#define LIGHTNING_COMMIT_TX_H
|
|
|
|
#include <ccan/tal/tal.h>
|
|
|
|
#include "lightning.pb-c.h"
|
|
|
|
|
|
|
|
struct sha256_double;
|
2015-06-08 22:29:06 +02:00
|
|
|
struct sha256;
|
2015-05-30 13:14:00 +02:00
|
|
|
|
|
|
|
/* Create commitment tx to spend the anchor tx output; doesn't fill in
|
|
|
|
* input scriptsig. */
|
|
|
|
struct bitcoin_tx *create_commit_tx(const tal_t *ctx,
|
|
|
|
OpenChannel *ours,
|
|
|
|
OpenChannel *theirs,
|
2015-06-08 22:29:06 +02:00
|
|
|
const struct sha256 *revocation_hash,
|
2015-06-08 08:44:52 +02:00
|
|
|
int64_t delta,
|
2015-05-30 13:14:00 +02:00
|
|
|
const struct sha256_double *anchor_txid,
|
|
|
|
unsigned int anchor_output);
|
|
|
|
#endif
|