Function fake_block

Source
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:

  1. a transparent coinbase tx,
  2. a V4 tx containing a random Sapling output,
  3. a V4 tx containing a Sapling output decryptable by dfvk,
  4. depending on the value of tx_after, another V4 tx containing a random Sapling output.