Skip to content

Commit

Permalink
fix: resoluve review
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLucqs committed Jan 25, 2024
1 parent 6632d2e commit 3700ed9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/trie/merkle_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ impl<H: StarkHash, DB: BonsaiDatabase, ID: Id> MerkleTree<H, DB, ID> {
self.db.contains(&TrieKeyType::Flat(key.to_vec()))
}

/// Generates a merkle-proof for a given `key`.
/// Returns the list of nodes along the path.
///
/// if it exists, or down to the node which proves that the key does not exist.
///
Expand Down Expand Up @@ -883,6 +883,7 @@ impl<H: StarkHash, DB: BonsaiDatabase, ID: Id> MerkleTree<H, DB, ID> {
}
}

/// preload_nodes from the current root towards the destination [Leaf](Node::Leaf) node.
/// If the destination node exists, it will be the final node in the list.
///
/// This means that the final node will always be either a the destination [Leaf](Node::Leaf)
Expand Down

0 comments on commit 3700ed9

Please sign in to comment.