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

BREAKING CHANGE: Persist node's current view in the database #1710

Merged

Conversation

86667
Copy link
Contributor

@86667 86667 commented Oct 25, 2024

Closes #1609 and #1709.

For the purpose of reducing re-sync time after consensus has not been reached for a while.

For example, before these changes a node on view: 30 with finalised_view: 10 would start from view: 10 if restarted. Now, they'll start back on view :30. If enough time has passed since they went down then they will jump ahead the minimum number of views.

These changes make breaking changes to the db

@86667 86667 linked an issue Oct 25, 2024 that may be closed by this pull request
@86667 86667 changed the title Persist node's current view in the database BREAKING CHANGE: Persist node's current view in the database Oct 25, 2024
@86667 86667 force-pushed the 1609-the-nodes-current-view-should-be-persisted-in-the-database branch from 3460502 to 09e102e Compare October 28, 2024 15:50
@86667 86667 force-pushed the 1609-the-nodes-current-view-should-be-persisted-in-the-database branch from 356c2fe to 96ae581 Compare October 30, 2024 11:11
Copy link
Contributor

@JamesHinshelwood JamesHinshelwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@86667 86667 force-pushed the 1609-the-nodes-current-view-should-be-persisted-in-the-database branch from 0b82176 to 83cc174 Compare October 31, 2024 15:36
@86667 86667 enabled auto-merge October 31, 2024 15:38
@86667 86667 force-pushed the 1609-the-nodes-current-view-should-be-persisted-in-the-database branch from 83cc174 to 4dc6e3a Compare November 1, 2024 11:27
@86667 86667 force-pushed the 1609-the-nodes-current-view-should-be-persisted-in-the-database branch from 4dc6e3a to cdef0d7 Compare November 1, 2024 11:45
@86667 86667 added this pull request to the merge queue Nov 1, 2024
Merged via the queue into main with commit 115b2a3 Nov 1, 2024
5 checks passed
@86667 86667 deleted the 1609-the-nodes-current-view-should-be-persisted-in-the-database branch November 1, 2024 16:09
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.

The node's current view should be persisted in the database
2 participants