pub fn canonical_crossing_fee<P: Parameters>(
params: &P,
target_height: BlockHeight,
) -> Result<Zatoshis, FeeError>Available on crate feature
orchard only.Expand description
The canonical ZIP 318 crossing’s fee under the ZIP 317 marginal fee in effect at
target_height (zip317::marginal_fee): what the STANDARD ZIP 317 rule charges the
canonical shape, 15 000 zatoshis before the fee reduction of ZIP 2009 takes effect and 3 000
from then on.
ZIP 318 requires this exact fee. Any other value partitions the anonymity set, so a transaction paying a non-standard fee is not a canonical crossing however well its structure matches. The standard rule is used rather than the caller’s: a proposal built on a fixed non-standard rule would otherwise be compared against its own fee and always agree.