-
Notifications
You must be signed in to change notification settings - Fork 38
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
Improve block hashes fetching #297
Comments
in prove_blocks.sh we call
for every block |
maybe we should add a way to call it once with |
Yeah that wasn't really meant to be used with the helper scripts, but more in production environment when the leader would be most likely be running in the background as a daemon. Although, kinda orthogonal, but it would be really nice if as you suggested we could tweak |
So I actually started some work that allows |
Superseded by #325 |
We currently do around 128 RPC queries to get the list of previous block hashes to pass to the prover.
We may improve on this by persisting the previous block hashes in memory. Upon receiving the next block, we'd just need to rotate the vector and replace the item in position 255 with the parent hash.
Fairly minor improvement vs proving cost though.
The text was updated successfully, but these errors were encountered: