Skip to main content

zcash_client_backend/fees/
standard.rs

1//! Change strategies designed for use with a standard fee.
2
3use super::StandardFeeRule;
4
5/// A change strategy that proposes change as a single output. The output pool is chosen
6/// as the most current pool that avoids unnecessary pool-crossing (with a specified
7/// fallback when the transaction has no shielded inputs). Fee calculation is delegated
8/// to the provided fee rule.
9pub type SingleOutputChangeStrategy<I> =
10    super::zip317::SingleOutputChangeStrategy<StandardFeeRule, I>;
11
12/// A change strategy that proposes change as potentially multiple evenly-sized outputs having at
13/// least a threshold value. The output pool is chosen as the most current pool that avoids
14/// unnecessary pool-crossing (with a specified fallback when the transaction has no shielded
15/// inputs). Fee calculation is delegated to the provided fee rule.
16pub type MultiOutputChangeStrategy<I> =
17    super::zip317::MultiOutputChangeStrategy<StandardFeeRule, I>;