Skip to content

Commit

Permalink
account for fees in compound transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
aspect authored and michaelsutton committed Jan 15, 2024
1 parent be365e9 commit ecf21ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wallet/core/src/utxo/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ impl UtxoContext {
consumed += tx.aggregate_input_value();
} else {
// compound tx has no payment value
outgoing += tx.aggregate_output_value();
outgoing += tx.fees() + tx.aggregate_output_value();
consumed += tx.aggregate_input_value()
}
}
Expand Down

0 comments on commit ecf21ba

Please sign in to comment.