mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +01:00
bitcoin/psbt: more const pointers.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
4b4fe2f4fb
commit
80c705d528
2 changed files with 8 additions and 8 deletions
|
@ -359,8 +359,8 @@ void psbt_elements_normalize_fees(struct wally_psbt *psbt)
|
|||
}
|
||||
}
|
||||
|
||||
bool psbt_has_input(struct wally_psbt *psbt,
|
||||
struct bitcoin_txid *txid,
|
||||
bool psbt_has_input(const struct wally_psbt *psbt,
|
||||
const struct bitcoin_txid *txid,
|
||||
u32 outnum)
|
||||
{
|
||||
for (size_t i = 0; i < psbt->num_inputs; i++) {
|
||||
|
@ -388,7 +388,7 @@ bool psbt_input_set_redeemscript(struct wally_psbt *psbt, size_t in,
|
|||
return wally_err == WALLY_OK;
|
||||
}
|
||||
|
||||
struct amount_sat psbt_input_get_amount(struct wally_psbt *psbt,
|
||||
struct amount_sat psbt_input_get_amount(const struct wally_psbt *psbt,
|
||||
size_t in)
|
||||
{
|
||||
struct amount_sat val;
|
||||
|
@ -408,7 +408,7 @@ struct amount_sat psbt_input_get_amount(struct wally_psbt *psbt,
|
|||
return val;
|
||||
}
|
||||
|
||||
struct amount_sat psbt_output_get_amount(struct wally_psbt *psbt,
|
||||
struct amount_sat psbt_output_get_amount(const struct wally_psbt *psbt,
|
||||
size_t out)
|
||||
{
|
||||
struct amount_asset asset;
|
||||
|
|
|
@ -201,7 +201,7 @@ void psbt_output_add_unknown(struct wally_psbt_output *out,
|
|||
* @psbt - psbt
|
||||
* @in - index of input whose value you're returning
|
||||
* */
|
||||
struct amount_sat psbt_input_get_amount(struct wally_psbt *psbt,
|
||||
struct amount_sat psbt_input_get_amount(const struct wally_psbt *psbt,
|
||||
size_t in);
|
||||
|
||||
/* psbt_output_get_amount - Returns the value of this output
|
||||
|
@ -209,7 +209,7 @@ struct amount_sat psbt_input_get_amount(struct wally_psbt *psbt,
|
|||
* @psbt - psbt
|
||||
* @out -index of output whose value you're returning
|
||||
*/
|
||||
struct amount_sat psbt_output_get_amount(struct wally_psbt *psbt,
|
||||
struct amount_sat psbt_output_get_amount(const struct wally_psbt *psbt,
|
||||
size_t out);
|
||||
|
||||
/* psbt_has_input - Is this input present on this psbt
|
||||
|
@ -218,8 +218,8 @@ struct amount_sat psbt_output_get_amount(struct wally_psbt *psbt,
|
|||
* @txid - txid of input
|
||||
* @outnum - output index of input
|
||||
*/
|
||||
bool psbt_has_input(struct wally_psbt *psbt,
|
||||
struct bitcoin_txid *txid,
|
||||
bool psbt_has_input(const struct wally_psbt *psbt,
|
||||
const struct bitcoin_txid *txid,
|
||||
u32 outnum);
|
||||
|
||||
struct wally_psbt *psbt_from_b64(const tal_t *ctx,
|
||||
|
|
Loading…
Add table
Reference in a new issue