fee_provision is not a fraction of sent amount but some fixed value
This commit is contained in:
parent
1bc61f9251
commit
4c0a034a16
@ -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