Function bp_runtime::grow_storage_proof
source · pub fn grow_storage_proof<L: TrieConfiguration>(
trie: &mut TrieDBMut<'_, L>,
prefix: Vec<u8>,
num_extra_nodes: usize,
)
Expand description
Insert values in the provided trie at common-prefix keys in order to inflate the resulting storage proof.
This function can add at most 15 common-prefix keys per prefix nibble (4 bits). Each such key adds about 33 bytes (a node) to the proof.