Skip to content

Commit

Permalink
no funky extra change output
Browse files Browse the repository at this point in the history
  • Loading branch information
fluidvanadium committed Jun 26, 2024
1 parent 527256a commit 50ffcd4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions zcash_client_backend/src/fees/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,7 @@ where
})?;

if proposed_change.is_zero() {
TransactionBalance::new(
vec![ChangeValue::new(
_fallback_change_pool,
NonNegativeAmount::const_from_u64(0),
change_memo,
)],
fee_amount,
)
.map_err(|_| overflow())
TransactionBalance::new(vec![], fee_amount).map_err(|_| overflow())
} else {
let dust_threshold = dust_output_policy
.dust_threshold()
Expand Down

0 comments on commit 50ffcd4

Please sign in to comment.