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

[reconfig] Allow sync last checkpoint tx when validator is halted #4493

Merged
merged 2 commits into from
Sep 26, 2022

Conversation

lxfind
Copy link
Contributor

@lxfind lxfind commented Sep 6, 2022

During reconfiguration, when the validators are halted, if we find out that we are missing some transactions from the last checkpoint, we need to be able to execute them. This PR adds a path that allows us to execute transactions even when the validator is halted, if we know for sure that the transaction has been finalized.
The code is becoming a bit messy and hard to reason about. I have some ideas to clean this up but would love to get feedback first. One way to make this easier to reason about is to define a ProofOfFinality struct, and then pass it into process certificate. This will at least allow us easily find out where the proof came from.

@lxfind lxfind force-pushed the reconfig-add-special-checkpoint-sync-halt branch from a0ac21a to 483f736 Compare September 7, 2022 16:17
@lxfind lxfind changed the base branch from main to checkout-local-fragment-add-seq September 7, 2022 16:17
Base automatically changed from checkout-local-fragment-add-seq to main September 7, 2022 21:13
@lxfind lxfind force-pushed the reconfig-add-special-checkpoint-sync-halt branch from 483f736 to cd28fa1 Compare September 9, 2022 16:10
@lxfind lxfind force-pushed the reconfig-add-special-checkpoint-sync-halt branch from cd28fa1 to d028cc7 Compare September 23, 2022 16:55
crates/sui-core/src/authority.rs Outdated Show resolved Hide resolved
@lxfind lxfind force-pushed the reconfig-add-special-checkpoint-sync-halt branch from d028cc7 to 9654a7d Compare September 26, 2022 21:32
@lxfind lxfind enabled auto-merge (squash) September 26, 2022 21:32
@lxfind lxfind merged commit a6b4f08 into main Sep 26, 2022
@lxfind lxfind deleted the reconfig-add-special-checkpoint-sync-halt branch September 26, 2022 21:44
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.

2 participants