Skip to content

Commit

Permalink
comms added
Browse files Browse the repository at this point in the history
  • Loading branch information
mikjakbiak committed May 3, 2024
1 parent a599fb1 commit facf167
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mmr/mmrs/stacked.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ impl MMR {
store: Arc<dyn Store>,
hasher: Arc<dyn Hasher>,
mmr_id: Option<String>,
//? The sizes of the sub MMRs should be the stacks at size, not the actual current size
sub_mmrs_metadata: SizesToMMRs,
) -> Result<Self, MMRError> {
let mut mmr = MMR::new(store, hasher, mmr_id);
let sub_mmrs_count = sub_mmrs_metadata.len();
let mut sub_mmrs: Vec<SubMMR> = Vec::with_capacity(sub_mmrs_count);

//? size here should be stacks at size
for (idx, (size, mmr_metadata)) in sub_mmrs_metadata.iter().enumerate() {
let (_, _, _, hashes_table) =
MMR::get_stores(&mmr_metadata.mmr_id, mmr_metadata.store.clone());
Expand Down

0 comments on commit facf167

Please sign in to comment.