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

feat: operation queue #85

Merged
merged 8 commits into from
Jul 20, 2024
Merged

feat: operation queue #85

merged 8 commits into from
Jul 20, 2024

Conversation

distractedm1nd
Copy link
Contributor

@distractedm1nd distractedm1nd commented Jul 19, 2024

I noticed that the logic from the web demo days never got ported over to Sequencer: We were relying on the update-entry endpoint to update the tree

This update queues operations via the endpoint, and then executes them in finalize_epoch.

There are still some various todos, so it is a WIP. Biggest TODO is unit testing this

Other concern:
This is combining finalize_epoch with running all updates, which is very inefficient considering we could preemptively update. This is necessary though in order to send merkle proofs to API users for the last epoch state and not some intermediate tree state that is not SNARK verifiable. I think this concern is not a big deal because it is essentially what we will be doing once we finish based rollup integration anyways

Closes #87

@distractedm1nd distractedm1nd changed the base branch from main to api-revamp July 19, 2024 19:07
@deltadevsde deltadevsde deleted a comment from coderabbitai bot Jul 19, 2024
@distractedm1nd distractedm1nd merged commit 77dbbc0 into api-revamp Jul 20, 2024
1 check failed
distractedm1nd added a commit that referenced this pull request Jul 20, 2024
* feat: switching to axum, adding swagger UI

* feat: operation queue (#85)

* feat: operation queue

* refactor and beginning test

* progress

* balls deep in redis debugging

* no more deadlock but proof verification fails

* test passes if we don't derive tree, but is tree state fucked then?

* yanking out derive_tree

* renaming Signable trait and method names
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.

1 participant