zebra_consensus::transaction::check

Function has_enough_orchard_flags

source
pub fn has_enough_orchard_flags(
    tx: &Transaction,
) -> Result<(), TransactionError>
Expand description

Checks that the transaction has enough orchard flags.

ยงConsensus

For Transaction::V5 only:

[NU5 onward] If effectiveVersion >= 5 and nActionsOrchard > 0, then at least one of enableSpendsOrchard and enableOutputsOrchard MUST be 1.

https://zips.z.cash/protocol/protocol.pdf#txnconsensus