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

Refactor code and introduce offchain mode. #743

Merged
merged 5 commits into from
Jun 20, 2024

Conversation

piohei
Copy link
Contributor

@piohei piohei commented Jun 12, 2024

Motivation

Chain is not always required to run sequencer. ex. testing, hackathons, etc.

Solution

Big part of the code had been refactored to keep things separated. Now integration tests are running twice. Once for onchain mode, and once for offchain mode. If some test doesn't make sense for offchain it is not being created.

There is also small fix to task monitor. Now when tasks was failed and we are shutting down process is not aborting. We just not rerun the task.

Also to make it possible to run tests in parallel I have changed how shutdown works. Now it is not a global field but regular struct created at the beginning of the application.

This version still requires semaphore-mtb running. Next step is to remove that requirement for offchain.

PR Checklist

  • Added Tests
  • Added Documentation

@piohei piohei force-pushed the piohei/offchain branch from 47204ef to 9880502 Compare June 12, 2024 14:51
@piohei piohei marked this pull request as ready for review June 12, 2024 14:54
@piohei piohei requested a review from a team as a code owner June 12, 2024 14:54
src/app.rs Show resolved Hide resolved
src/config.rs Show resolved Hide resolved
src/prover/validator.rs Outdated Show resolved Hide resolved
@piohei piohei force-pushed the piohei/offchain branch from c397996 to 2b1f2de Compare June 17, 2024 10:22
@piohei piohei requested a review from Dzejkop June 17, 2024 10:23
@piohei piohei force-pushed the piohei/offchain branch from 2b1f2de to 665a357 Compare June 19, 2024 09:02
@piohei piohei requested a review from 0xKitsune June 19, 2024 14:47
@0xKitsune 0xKitsune merged commit dd3d8ff into worldcoin:main Jun 20, 2024
3 checks passed
@piohei piohei deleted the piohei/offchain branch June 24, 2024 11:43
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