Skip to content

Commit

Permalink
fix update_test_indexer_after_append update logic in test indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeytimoshin committed Jan 7, 2025
1 parent 6468bea commit caee744
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion program-tests/utils/src/indexer/test_indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -797,9 +797,11 @@ impl<R: RpcConnection + Send + Sync + 'static> Indexer<R> for TestIndexer<R> {
state_merkle_tree_bundle.merkle_tree.root(),
"update indexer after append root invalid"
);

let num_inserted_zkps = num_inserted_zkps + 1;
// check can we get rid of this and use the data from the merkle tree
if num_inserted_zkps == max_num_zkp_updates {
for _ in 0..zkp_batch_size {
for _ in 0..zkp_batch_size * max_num_zkp_updates {
state_merkle_tree_bundle.output_queue_elements.remove(0);
}
}
Expand Down

0 comments on commit caee744

Please sign in to comment.