From cca6e8db031b2452cdf669f10619ff9eadcc2f43 Mon Sep 17 00:00:00 2001 From: niftynei Date: Wed, 3 Mar 2021 14:50:46 -0600 Subject: [PATCH] psbt: mark psbt arg as const for `psbt_compute_fee` --- bitcoin/psbt.c | 2 +- bitcoin/psbt.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitcoin/psbt.c b/bitcoin/psbt.c index 015a0eb42..049062765 100644 --- a/bitcoin/psbt.c +++ b/bitcoin/psbt.c @@ -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; diff --git a/bitcoin/psbt.h b/bitcoin/psbt.h index 18b29862a..e1fa9b406 100644 --- a/bitcoin/psbt.h +++ b/bitcoin/psbt.h @@ -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 *