pub fn fake_block(
height: BlockHeight,
nf: Nullifier,
dfvk: &DiversifiableFullViewingKey,
value: u64,
tx_after: bool,
initial_sapling_tree_size: Option<u32>,
) -> (Block, u32)
Expand description
Generates a fake block containing a Sapling output decryptable by dfvk
.
The fake block has the following transactions in this order:
- a transparent coinbase tx,
- a V4 tx containing a random Sapling output,
- a V4 tx containing a Sapling output decryptable by
dfvk
, - depending on the value of
tx_after
, another V4 tx containing a random Sapling output.