2015-05-30 13:14:00 +02:00
|
|
|
#ifndef LIGHTNING_COMMIT_TX_H
|
|
|
|
#define LIGHTNING_COMMIT_TX_H
|
2016-01-21 21:08:08 +01:00
|
|
|
#include "config.h"
|
2015-05-30 13:14:00 +02:00
|
|
|
#include "lightning.pb-c.h"
|
2016-01-21 21:08:08 +01:00
|
|
|
#include <ccan/tal/tal.h>
|
2015-05-30 13:14:00 +02:00
|
|
|
|
2015-08-07 05:15:30 +02:00
|
|
|
struct channel_state;
|
2015-05-30 13:14:00 +02:00
|
|
|
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-07-29 08:44:28 +02:00
|
|
|
OpenAnchor *anchor,
|
|
|
|
const struct sha256 *rhash,
|
2015-08-07 05:15:30 +02:00
|
|
|
const struct channel_state *cstate);
|
2015-05-30 13:14:00 +02:00
|
|
|
#endif
|