pub const BATCH_COMMIT_THRESHOLD: usize = 4;Expand description
Depth-only commit threshold for batch execution (full sync / block import). Each batch
layer holds ~1024 blocks of trie diffs (~1 GB), so we flush after a few layers to bound
memory. The canonical head - DB_COMMIT_THRESHOLD safe-commit root never lands on a batch
layer boundary, so batch mode commits by depth instead; this is sound because full sync and
import only ever extend a single canonical chain (no competing forks to mis-commit).