mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
psbt: enforce const on max_witness_len
This commit is contained in:
parent
470f5fabc9
commit
6cfac5d2a6
@ -351,7 +351,7 @@ void psbt_input_add_max_witness_len(struct wally_psbt_input *input,
|
||||
}
|
||||
|
||||
|
||||
bool psbt_input_get_max_witness_len(struct wally_psbt_input *input,
|
||||
bool psbt_input_get_max_witness_len(const struct wally_psbt_input *input,
|
||||
u16 *max_witness_len)
|
||||
{
|
||||
size_t value_len;
|
||||
|
@ -127,7 +127,7 @@ void psbt_input_add_max_witness_len(struct wally_psbt_input *input,
|
||||
*
|
||||
* Returns false if key not present */
|
||||
WARN_UNUSED_RESULT bool
|
||||
psbt_input_get_max_witness_len(struct wally_psbt_input *input,
|
||||
psbt_input_get_max_witness_len(const struct wally_psbt_input *input,
|
||||
u16 *max_witness_len);
|
||||
|
||||
/* psbt_has_required_fields - Validates psbt field completion
|
||||
|
Loading…
Reference in New Issue
Block a user