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(node): new voting reactor state machine #1136

Open
wants to merge 37 commits into
base: main
Choose a base branch
from

Conversation

cryptoAtwill
Copy link
Contributor

As part of topdown enhancement, the following updates are added to vote tally in this PR:

  • Using tokio single thread reactor mode
  • Introduce operation mode state machine skeleton with Active and Paused operation mode.

The state machine is as follow:

stateDiagram-v2
  [*] --> Paused : Process start
  Paused --> Active : Synced
  Active --> Recovery : Checkpoints quiet
  Recovery --> Active : Checkpoints observed
  Active --> Paused : Stopping
  Recovery --> Paused : Stopping
	
  state Recovery {
    [*] --> SoftRecovery
    SoftRecovery --> HardRecovery : Still no new topdown checkpoints
    SoftRecovery --> [*] : New checkpoints
    HardRecovery --> [*] : New checkpoints
  }
Loading

@cryptoAtwill cryptoAtwill requested a review from a team as a code owner September 18, 2024 09:10
Base automatically changed from collateral-sourcing to main September 25, 2024 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

3 participants