Skip to content

Commit

Permalink
chore: improve batched merkle tree test coverage (#1507)
Browse files Browse the repository at this point in the history
* perf: optimize zero copy CU usuage

* chore: batched merkle tree test coverage

* chore: regenerated accounts

* chore: rename hash_chain_store -> hash_chain_stores, small renamings and fixes
  • Loading branch information
ananas-block authored Jan 23, 2025
1 parent 49f5045 commit dfc2ef8
Show file tree
Hide file tree
Showing 28 changed files with 1,791 additions and 452 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"pubkey":"6L7SzhYB3anwEQ9cphpJ1U7Scwj57bx2xueReg7R9cKU","account":{"lamports":29120640,"data":["cXVldWVhY2MP2NRH06M+VSyY8R8Xdq4y4g7ChxQIOUQPXTDG51dI2AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAXwAAAAAAAACIEwAAAAAAAP////////////////////8IUAAAAAAAAPKuWuX0POEKz8TJiMAjOgmV1yiV9Am40XHqZVvj8yn+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAIAAAAAAAAAMgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADIAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAyAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","base64"],"owner":"compr6CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq","executable":false,"rentEpoch":18446744073709551615,"space":4056}}
{"pubkey":"6L7SzhYB3anwEQ9cphpJ1U7Scwj57bx2xueReg7R9cKU","account":{"lamports":29120640,"data":["cXVldWVhY2MP2NRH06M+VSyY8R8Xdq4y4g7ChxQIOUQPXTDG51dI2AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAXwAAAAAAAACIEwAAAAAAAP////////////////////8IUAAAAAAAAPKuWuX0POEKz8TJiMAjOgmV1yiV9Am40XHqZVvj8yn+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq","executable":false,"rentEpoch":18446744073709551615,"space":4056}}
6 changes: 3 additions & 3 deletions forester-utils/src/instructions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ where
let batch = &merkle_tree.queue_metadata.batches[full_batch_index as usize];
let zkp_batch_index = batch.get_num_inserted_zkps();
let leaves_hashchain =
merkle_tree.hashchain_store[full_batch_index as usize][zkp_batch_index as usize];
merkle_tree.hash_chain_stores[full_batch_index as usize][zkp_batch_index as usize];
let start_index = merkle_tree.next_index;
let current_root = *merkle_tree.root_history.last().unwrap();
let batch_size = batch.zkp_batch_size as usize;
Expand Down Expand Up @@ -235,7 +235,7 @@ pub async fn create_append_batch_ix_data<R: RpcConnection, I: Indexer<R>>(
output_queue.batch_metadata.batches[full_batch_index as usize].get_num_inserted_zkps();

let leaves_hashchain =
output_queue.hashchain_store[full_batch_index as usize][num_inserted_zkps as usize];
output_queue.hash_chain_stores[full_batch_index as usize][num_inserted_zkps as usize];

(
zkp_batch_size,
Expand Down Expand Up @@ -343,7 +343,7 @@ pub async fn create_nullify_batch_ix_data<R: RpcConnection, I: Indexer<R>>(
let zkp_size = merkle_tree.queue_metadata.zkp_batch_size;
let batch = &merkle_tree.queue_metadata.batches[batch_idx];
let zkp_idx = batch.get_num_inserted_zkps();
let hashchain = merkle_tree.hashchain_store[batch_idx][zkp_idx as usize];
let hashchain = merkle_tree.hash_chain_stores[batch_idx][zkp_idx as usize];
let root = *merkle_tree.root_history.last().unwrap();
(zkp_size, root, hashchain)
};
Expand Down
Loading

0 comments on commit dfc2ef8

Please sign in to comment.