zcash_primitives-0.20.0
nuttycom
tagged this
14 Nov 23:21
[0.20.0] - 2024-11-14 ===================== Added ----- - A new feature flag, `non-standard-fees`, has been added. This flag is now required in order to make use of any types or methods that enable non-standard fee calculation. Changed ------- - MSRV is now 1.77.0. - `zcash_primitives::transaction::fees`: - The `fixed` module has been moved behind the `non-standard-fees` feature flag. Using a fixed fee may result in a transaction that cannot be mined on the current Zcash network. To calculate the ZIP 317 fee, use `zip317::FeeRule::standard()`. - `zip317::FeeRule::non_standard` has been moved behind the `non-standard-fees` feature flag. Using a non-standard fee may result in a transaction that cannot be mined on the current `Zcash` network. Removed ------- - `zcash_primitives::transaction::fees`: - `StandardFeeRule` itself has been removed; it was not used in this crate. Its use in `zcash_client_backend` has been replaced with `zcash_client_backend::fees::StandardFeeRule`. - `fixed::FeeRule::standard`. This constructor was misleadingly named: using a fixed fee does not conform to any current Zcash standard. To calculate the ZIP 317 fee, use `zip317::FeeRule::standard()`. To preserve the current behaviour, use `fixed::FeeRule::non_standard(zip317::MINIMUM_FEE)`, but note that this is likely to result in transactions that cannot be mined.