psbt: mark psbt arg as const for psbt_compute_fee

This commit is contained in:
niftynei 2021-03-03 14:50:46 -06:00 committed by Rusty Russell
parent a5fedc4e1f
commit cca6e8db03
2 changed files with 2 additions and 2 deletions

View file

@ -821,7 +821,7 @@ void psbt_txid(const tal_t *ctx,
wally_tx_free(tx);
}
struct amount_sat psbt_compute_fee(struct wally_psbt *psbt)
struct amount_sat psbt_compute_fee(const struct wally_psbt *psbt)
{
struct amount_sat fee, input_amt;
struct amount_asset asset;

View file

@ -249,7 +249,7 @@ struct amount_sat psbt_output_get_amount(const struct wally_psbt *psbt,
*
* @psbt -psbt
*/
struct amount_sat psbt_compute_fee(struct wally_psbt *psbt);
struct amount_sat psbt_compute_fee(const struct wally_psbt *psbt);
/* psbt_has_input - Is this input present on this psbt
*