@Override
  public void visitLeafs(final TrieIterator.LeafHandler<V> handler) {
    final TrieIterator<V> visitor = new TrieIterator<>(handler, true);
    root.accept(visitor, CompactEncoding.bytesToPath(Bytes32.ZERO));
  }
Create a trie.

@param nodeFactory The {@link StoredNodeFactory} to retrieve node.
@param rootHash The initial root hash for the trie, which should be already present in {@code
    storage}.
ethereum/trie/src/main/java/org/hyperledger/besu/ethereum/trie/StoredMerkleTrie.java