mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
bitcoin_tx: add helper for extracting output amount
This commit is contained in:
committed by
Rusty Russell
parent
d8c9e70c0c
commit
c110f3662c
@@ -115,6 +115,13 @@ void bitcoin_tx_output_set_amount(struct bitcoin_tx *tx, int outnum,
|
||||
*/
|
||||
const u8 *bitcoin_tx_output_get_script(const tal_t *ctx, const struct bitcoin_tx *tx, int outnum);
|
||||
|
||||
/** bitcoin_tx_output_get_amount_sat - Helper to get transaction output's amount
|
||||
*
|
||||
* Internally we use a `wally_tx` to represent the transaction. The
|
||||
* satoshi amount isn't a struct amount_sat, so we need a conversion
|
||||
*/
|
||||
void bitcoin_tx_output_get_amount_sat(struct bitcoin_tx *tx, int outnum,
|
||||
struct amount_sat *amount);
|
||||
/**
|
||||
* Helper to just get an amount_sat for the output amount.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user