pub fn has_enough_orchard_flags(tx: &Transaction) -> Result<(), TransactionError> {
    if !tx.has_enough_orchard_flags() {
        return Err(TransactionError::NotEnoughFlags);
    }
    Ok(())
}
/// Checks that the transaction has enough orchard flags.
///
/// For `Transaction::V5` only:
/// * If `orchard_actions_count` > 0 then at least one of
/// `ENABLE_SPENDS|ENABLE_OUTPUTS` must be active.
///
/// https://zips.z.cash/protocol/protocol.pdf#txnencodingandconsensus
Checks that the transaction has enough orchard flags.


Checks that the transaction has enough orchard flags .
pub fn has_enough_orchard_flags(tx: &Transaction) -> Result<(), TransactionError> {
    if !tx.has_enough_orchard_flags() {
        return Err(TransactionError::NotEnoughFlags);
    }
    Ok(())
}
pub fn has_enough_orchard_flags ( tx : & Transaction ) -> Result < ( ) , TransactionError > { if ! tx . has_enough_orchard_flags ( ) { return Err ( TransactionError :: NotEnoughFlags ) ; } Ok ( ( ) ) }
Checks that the transaction has enough orchard flags.
Checks that the transaction has enough orchard flags .
tx
&Transaction