Skip to main content

build_shard_with_cap

Function build_shard_with_cap 

Source
pub fn build_shard_with_cap(
    chunks: &[Chunk],
    xorb_byte_cap: usize,
) -> (MdbShardBuilder, MerkleHash, Vec<(MerkleHash, Vec<u8>)>)
Expand description

Like build_shard, but with a custom per-xorb byte cap (tests use a tiny cap to force multi-xorb aggregation without allocating 64 MiB).