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

IF: prevent unnecessary lib<->head catchup transition changes #1617

Closed
wants to merge 1 commit into from

Conversation

linh2931
Copy link
Member

Resolved #1546

Instant finality makes it likely peers think their lib and head are not in sync but in reality they are only within small difference. To avoid unnecessary catchups, a minimal distance between lib and head is introduced. min_blocks_difference must be reached before catchup starts.

min_blocks_difference is defined as the number of blocks produced during the half keep alive interval (how long a node waits before contacting its peer).

Copy link
Member

@heifner heifner left a comment

Choose a reason for hiding this comment

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

I think we should target this to main. A private chain with a small number of block producers would hit similar situtation.

@linh2931 linh2931 changed the base branch from hotstuff_integration to main September 11, 2023 17:59
@linh2931 linh2931 changed the base branch from main to hotstuff_integration September 11, 2023 18:00
@linh2931
Copy link
Member Author

I think we should target this to main. A private chain with a small number of block producers would hit similar situtation.

Rebasing to main brings in a large number of files and causes merge conflicts. I will create a fresh PR based on main directly and close this after that, so it is easier to see the changes.

@linh2931
Copy link
Member Author

Close this. Use #1619 instead (which targets to main).

@linh2931 linh2931 closed this Sep 11, 2023
@linh2931 linh2931 deleted the smarter_lib_head_catchup branch September 11, 2023 19:13
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