Choice of inputs in create_transaction adds 10% to the amount
This commit is contained in:
parent
5a664ea001
commit
27a9379e7c
@ -58,7 +58,7 @@ pub fn create_transaction(
|
||||
}
|
||||
|
||||
for (outpoint, output) in available_outpoints {
|
||||
if total_available > sum_outputs {
|
||||
if total_available > sum_outputs.checked_add(sum_outputs.checked_div(10).unwrap()).unwrap() {
|
||||
break;
|
||||
}
|
||||
total_available += output.amount;
|
||||
|
Loading…
x
Reference in New Issue
Block a user