-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add header chain prover #357
base: dev
Are you sure you want to change the base?
Conversation
ded149b
to
737ddae
Compare
Using new RPC functions that mock-rpc doesn't support. It is expected that mock-rpc tests fail. Mock-rpc will need a new release with the new calls implemented. Edit: It is added and tests are enabled again. |
* wip * update risc0 version * recursive proving * WIP recursive prooving with method_id returned * recursive header chain proof * Longest chain proof ready * remove todo since it is not needed --------- Co-authored-by: Ekrem BAL <[email protected]>
This reverts commit 387131e.
This reverts commit a560055.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make sync blockchain a single function, it will go back from the last block and go to previous block, until it finds a block in db, then add them to the db. (it would be great if we can use batch insertion to db here). If the tip is 100 blocks or more than the current max in our db, then it should start going back from current_max + 90.
We should add prev_block_hash to our db schema, our previous db query is wrong, there can be duplicate blocks with the same height
bdaa849
to
cc02d18
Compare
Description
This PR adds header chain prover.
Linked Issues
Testing
New tests are going to be added.
Docs
New docs are going to be added.