referrerpolicy=no-referrer-when-downgrade

Function node_bench::generator::generate_trie

source ·
pub fn generate_trie(
    db: Arc<dyn KeyValueDB>,
    key_values: impl IntoIterator<Item = (Vec<u8>, Vec<u8>)>,
) -> Hash
Expand description

Generate trie from given key_values.

Will fill your database db with trie data from key_values and return root.