fee_provision is not a fraction of sent amount but some fixed value
This commit is contained in:
parent
a1713ed8f9
commit
370e0746dd
@ -48,7 +48,7 @@ pub fn create_transaction(
|
||||
inputs.insert(must_outpoint, must_output);
|
||||
}
|
||||
|
||||
let fee_provision = sum_outputs.checked_div(10).unwrap();
|
||||
let fee_provision = Amount::from_sat(1000);
|
||||
|
||||
for (outpoint, output) in available_outpoints {
|
||||
if total_available > sum_outputs.checked_add(fee_provision).unwrap() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user