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

Event-relayer: do not regenerate the proof if file exists #37

Open
sept-en opened this issue Dec 28, 2021 · 0 comments
Open

Event-relayer: do not regenerate the proof if file exists #37

sept-en opened this issue Dec 28, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@sept-en
Copy link
Contributor

sept-en commented Dec 28, 2021

Currently, if the relay restarts, it will start from the latest block so it most likely will generate proofs for every transaction until it catches up. Generating proofs for transactions takes most of the time so if we first check for the proof file existence (we already store built proofs) we will significantly reduce the time needed to catch up after the restart.

But also be aware that we need to take into account that file could be corrupted so at least add some check for file size (higher than some threshold)

@sept-en sept-en added the enhancement New feature or request label Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants