mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
commit_tx: expose wscript and scriptpubkey for to_us/to_them payments.
This is useful for locating them given a random on-chain transaction. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -14,6 +14,20 @@ u8 *wscript_for_htlc(const tal_t *ctx,
|
||||
const struct sha256 *rhash,
|
||||
enum htlc_side side);
|
||||
|
||||
/* Returns scriptpubkey: *wscript is NULL if it's a direct p2wpkh. */
|
||||
u8 *commit_output_to_us(const tal_t *ctx,
|
||||
const struct peer *peer,
|
||||
const struct sha256 *rhash,
|
||||
enum htlc_side side,
|
||||
u8 **wscript);
|
||||
|
||||
/* Returns scriptpubkey: *wscript is NULL if it's a direct p2wpkh. */
|
||||
u8 *commit_output_to_them(const tal_t *ctx,
|
||||
const struct peer *peer,
|
||||
const struct sha256 *rhash,
|
||||
enum htlc_side side,
|
||||
u8 **wscript);
|
||||
|
||||
/* 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,
|
||||
|
||||
Reference in New Issue
Block a user