Skip to content

Commit

Permalink
create 0-value change
Browse files Browse the repository at this point in the history
  • Loading branch information
fluidvanadium committed May 30, 2024
1 parent 239c894 commit 471a062
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion zcash_client_backend/src/fees/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,15 @@ where
})?;

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

0 comments on commit 471a062

Please sign in to comment.