pub fn fake_orchard_bundle(
flags: Flags,
value_balance: ZatBalance,
n_actions: usize,
seed: u64,
bundle_version: BundleVersion,
) -> Bundle<Authorized, ZatBalance>Expand description
Builds a structurally valid Orchard-shaped bundle.
flagsmust be representable underbundle_version, otherwise this panics. In particular theenableCrossAddressbit is representable only for [BundleVersion::ironwood_v3].n_actionsmust be non-zero.seedselects the action contents; bundles built with different seeds have disjoint nullifier sets, which matters for the mempool and state conflict tests.
The proof is zeroed but has the canonical length for n_actions, so the bundle passes
[Bundle::try_from_parts]’s proof-size check and Zebra’s own canonical-size rule.