Skip to main content

PRUNING_DEPTH

Constant PRUNING_DEPTH 

Source
pub const PRUNING_DEPTH: u32 = 100;
Expand description

The maximum number of blocks the wallet is allowed to rewind. This is consistent with the bound in zcashd, and allows block data deeper than this delta from the chain tip to be pruned.

It is also the checkpoint budget of each note commitment tree and the depth of the window in which put_blocks creates checkpoints (checkpoint_floor); a store that maintains a tree by other means must build it with the same budget.