mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-07 08:04:23 +01:00
We don't want to re-create them internally, ever. The test-cli tools are patched to generate them all the time, but they're not performance critical. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
19 lines
486 B
C
19 lines
486 B
C
#ifndef LIGHTNING_CLOSE_TX_H
|
|
#define LIGHTNING_CLOSE_TX_H
|
|
#include "config.h"
|
|
#include "lightning.pb-c.h"
|
|
#include "secp256k1.h"
|
|
#include <ccan/tal/tal.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(secp256k1_context *secpctx,
|
|
const tal_t *ctx,
|
|
OpenChannel *ours,
|
|
OpenChannel *theirs,
|
|
OpenAnchor *anchor,
|
|
uint64_t to_us, uint64_t to_them);
|
|
#endif
|