Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrasiuk committed Sep 16, 2024
1 parent 2ffe547 commit 1bdba12
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions crates/trie/parallel/src/async_root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,9 @@ mod tests {
AsyncStateRoot::new(
consistent_view.clone(),
blocking_pool.clone(),
Default::default(),
HashedPostState::default()
Default::default(),
)
.incremental_root()
.await
Expand Down Expand Up @@ -341,11 +343,18 @@ mod tests {
}
}

let prefix_sets = hashed_state.construct_prefix_sets();
assert_eq!(
AsyncStateRoot::new(consistent_view.clone(), blocking_pool.clone(), hashed_state)
.incremental_root()
.await
.unwrap(),
AsyncStateRoot::new(
consistent_view.clone(),
blocking_pool.clone(),
Default::default(),
hashed_state
prefix_sets
)
.incremental_root()
.await
.unwrap(),
test_utils::state_root(state)
);
}
Expand Down

0 comments on commit 1bdba12

Please sign in to comment.