Skip to content

Commit 1d0e779

Browse files
committed
starknet_committer: abstract fetch_patricia_paths
1 parent a711f61 commit 1d0e779

5 files changed

Lines changed: 295 additions & 140 deletions

File tree

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
pub mod create_facts_tree;
22
pub mod db;
33
pub mod node_serde;
4-
pub mod traversal;
54
pub mod types;
65

76
pub use db::{FactDbFilledNode, FactsDb, FactsNodeLayout};

crates/starknet_committer/src/db/facts_db/traversal.rs

Lines changed: 0 additions & 133 deletions
This file was deleted.

crates/starknet_committer/src/db/facts_db/traversal_test.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ use starknet_patricia_storage::storage_trait::{DbHashMap, DbKey, DbValue};
3333
use starknet_types_core::felt::Felt;
3434
use starknet_types_core::hash::Pedersen;
3535

36-
use crate::db::facts_db::traversal::fetch_patricia_paths_inner;
36+
use super::fetch_patricia_paths_inner;
3737
use crate::db::facts_db::types::FactsSubTree;
38+
use crate::db::facts_db::FactsNodeLayout;
3839

3940
fn to_preimage_map(raw_preimages: HashMap<u32, Vec<u32>>) -> PreimageMap {
4041
raw_preimages
@@ -83,7 +84,7 @@ async fn test_fetch_patricia_paths_inner_impl(
8384
let mut nodes = HashMap::new();
8485
let mut fetched_leaves = HashMap::new();
8586

86-
fetch_patricia_paths_inner::<MockLeaf>(
87+
fetch_patricia_paths_inner::<MockLeaf, FactsNodeLayout>(
8788
&mut storage,
8889
vec![main_subtree],
8990
&mut nodes,

0 commit comments

Comments
 (0)