You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
823 B
28 lines
823 B
10 years ago
|
#ifndef LIGHTNING_COMMIT_TX_H
|
||
|
#define LIGHTNING_COMMIT_TX_H
|
||
9 years ago
|
#include "config.h"
|
||
8 years ago
|
#include "daemon/channel.h"
|
||
10 years ago
|
|
||
9 years ago
|
struct channel_state;
|
||
10 years ago
|
struct sha256_double;
|
||
9 years ago
|
struct sha256;
|
||
9 years ago
|
struct pubkey;
|
||
|
struct rel_locktime;
|
||
10 years ago
|
|
||
|
/* 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,
|
||
8 years ago
|
secp256k1_context *secpctx,
|
||
9 years ago
|
const struct pubkey *our_final,
|
||
|
const struct pubkey *their_final,
|
||
9 years ago
|
const struct rel_locktime *our_locktime,
|
||
9 years ago
|
const struct rel_locktime *their_locktime,
|
||
|
const struct sha256_double *anchor_txid,
|
||
|
unsigned int anchor_index,
|
||
|
u64 anchor_satoshis,
|
||
9 years ago
|
const struct sha256 *rhash,
|
||
9 years ago
|
const struct channel_state *cstate,
|
||
9 years ago
|
enum channel_side side,
|
||
9 years ago
|
int **map);
|
||
10 years ago
|
#endif
|