Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add photon with multiple trees tests #1198

Closed
wants to merge 11 commits into from

Conversation

ananas-block
Copy link
Contributor

Note:

  • state Merkle tree tests succeed
  • address Merkle tree tests do not succeed

ananas-block and others added 8 commits September 11, 2024 20:22
Implement TreeFinder for asynchronous tree discovery and insertion. Update EpochManager to handle new trees and integrate this process within the service. Configure tree discovery intervals to ensure continuous updates.
Enhanced the logging in `add_new_tree` function to improve traceability and added checks to ensure trees are only processed during the active phase. Adjusted test configurations and timing to stabilize test execution under photon.
@ananas-block ananas-block force-pushed the jorrit/add-photon-tests branch from 2a67eae to 3f542f8 Compare September 11, 2024 15:12
@ananas-block ananas-block force-pushed the jorrit/add-photon-tests branch from 26f730e to d94a21b Compare September 11, 2024 16:05
merkle_tree_pubkey: Pubkey::new_from_array(decode_hash(&x.tree)),
leaf_index: x.leaf_index.try_into().unwrap(),
queue_index: None,
nullifier_queue_pubkey: Pubkey::default(), //env_accounts.nullifier_queue_pubkey, // TODO: make dynamic. Why don't we get this value from the rpc call?
Copy link
Contributor

@vadorovsky vadorovsky Sep 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the correct approach here would be fetching the MT account and checking the associated queue. We could consider caching the results in a local hashmap, to avoid RPC calls for literally every indexer call. Do you agree? That's what I'm trying right now on my side.

@ananas-block ananas-block deleted the jorrit/add-photon-tests branch January 14, 2025 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants