Skip to content

Commit

Permalink
Merge pull request zcash#931 from nuttycom/remove_deprecated_default_fee
Browse files Browse the repository at this point in the history
zcash_primitives: Remove the deprecated 1000-ZAT DEFAULT_FEE constant
  • Loading branch information
nuttycom authored Sep 1, 2023
2 parents 7421d85 + 14d61a2 commit 224e021
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 2 additions & 0 deletions zcash_primitives/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ and this library adheres to Rust's notion of
- `impl {PartialEq, Eq} for transaction::builder::Error`
(use `assert_matches!` where error comparisons are required)
- `zcash_primitives::transaction::components::orchard::Unauthorized`
- `zcash_primitives::transaction::components::amount::DEFAULT_FEE` was
deprecated in 0.12.0 and has now been removed.

## [0.12.0] - 2023-06-06
### Added
Expand Down
8 changes: 0 additions & 8 deletions zcash_primitives/src/transaction/components/amount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ use orchard::value as orchard;
pub const COIN: i64 = 1_0000_0000;
pub const MAX_MONEY: i64 = 21_000_000 * COIN;

#[deprecated(
since = "0.12.0",
note = "To calculate the ZIP 317 fee, use `transaction::fees::zip317::FeeRule`.
For a constant representing the minimum ZIP 317 fee, use `transaction::fees::zip317::MINIMUM_FEE`.
For the constant amount 1000 zatoshis, use `Amount::const_from_i64(1000)`."
)]
pub const DEFAULT_FEE: Amount = Amount(1000);

/// A type-safe representation of some quantity of Zcash.
///
/// An Amount can only be constructed from an integer that is within the valid monetary
Expand Down

0 comments on commit 224e021

Please sign in to comment.