mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
ebb068e975
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
29 lines
849 B
C
29 lines
849 B
C
#ifndef LIGHTNING_ESCAPE_TX_H
|
|
#define LIGHTNING_ESCAPE_TX_H
|
|
#include <ccan/tal/tal.h>
|
|
#include "lightning.pb-c.h"
|
|
|
|
struct sha256_double;
|
|
struct sha256;
|
|
|
|
/* Create escape tx to spend our anchor tx output; doesn't fill in
|
|
* input scriptsig. */
|
|
struct bitcoin_tx *create_escape_tx(const tal_t *ctx,
|
|
OpenChannel *ours,
|
|
OpenChannel *theirs,
|
|
const struct sha256_double *anchor_txid,
|
|
unsigned int anchor_index,
|
|
uint64_t input_amount,
|
|
uint64_t escape_fee);
|
|
|
|
/* Create fast escape tx to spend our anchor tx output; doesn't fill in
|
|
* input scriptsig. */
|
|
struct bitcoin_tx *create_fast_escape_tx(const tal_t *ctx,
|
|
OpenChannel *ours,
|
|
OpenChannel *theirs,
|
|
const struct sha256_double *anchor_txid,
|
|
unsigned int anchor_index,
|
|
uint64_t input_amount,
|
|
uint64_t escape_fee);
|
|
#endif
|