[wallet]: update the data type of change_output_size, change_spend_size and tx_noinputs_size to int

- This change ensures consistency in transaction size and weight calculation
  within the wallet and prevents conversion overflow when calculating
  `max_selection_weight`.
This commit is contained in:
ismaelsadeeq
2024-03-21 17:05:51 +01:00
parent baab0d2d43
commit b6fc5043c1
2 changed files with 6 additions and 6 deletions

View File

@@ -1059,7 +1059,7 @@ static util::Result<CreatedTransactionResult> CreateTransactionInternal(
if (change_spend_size == -1) {
coin_selection_params.change_spend_size = DUMMY_NESTED_P2WPKH_INPUT_SIZE;
} else {
coin_selection_params.change_spend_size = (size_t)change_spend_size;
coin_selection_params.change_spend_size = change_spend_size;
}
// Set discard feerate