pub fn init_empty_merkle_tree(
    ctx: Context<'_, '_, '_, '_, Initialize<'_>>,
    max_depth: u32,
    max_buffer_size: u32
) -> Result<()>
Expand description

Creates a new merkle tree with maximum leaf capacity of power(2, max_depth) and a minimum concurrency limit of max_buffer_size.

Concurrency limit represents the # of replace instructions that can be successfully executed with proofs dated for the same root. For example, a maximum buffer size of 1024 means that a minimum of 1024 replaces can be executed before a new proof must be generated for the next replace instruction.

Concurrency limit should be determined by empirically testing the demand for state built on top of SPL Compression.

For instructions on enabling the canopy, see canopy.