Skip to main content

canonical_crossing_fee

Function canonical_crossing_fee 

Source
pub fn canonical_crossing_fee<P: Parameters>(
    params: &P,
    target_height: BlockHeight,
) -> Result<Zatoshis, FeeError>
Available on crate feature orchard only.
Expand description

The fee a canonical ZIP 318 crossing pays at target_height, obtained by asking the STANDARD ZIP 317 rule what the canonical shape costs.

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.