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

fix: lagging nodes failed to sync (#1829) #33

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

0xcb9ff9
Copy link

Description

upstream PR bnb-chain#1829

expanding hard-coded field to avoid risks

Rationale

FastFinality puts more information into the header.extra field to keep vote information. For mainnet, on epoch height, it could be 1526 bytes, which was 517 bytes before. So the hard-coded 700 bytes for header could be no longer enough, increase it by 2 times would be enough.

this bug could cause P2P sync failure for nodes that are lagging behind, since they would request access of ancient db, and GetBlockHeaders could be failed.

FastFinality puts more infor into the header.extra field to keep vote information.
For mainnet, on epoch height, it could be 1526 bytes, which was 517 bytes before.
So the hardcoded 700 bytes for header could be no longer enough, increase it by
2 times would be enough.

this bug could cause P2P sync failure for nodes that are lagging behind, since they
would request access of ancient db, and GetBlockHeaders could be failed.
@0xcb9ff9 0xcb9ff9 added bug Something isn't working upstream upstream PR labels Sep 12, 2023
@0xcb9ff9 0xcb9ff9 self-assigned this Sep 12, 2023
Copy link
Collaborator

@DarianShawn DarianShawn left a comment

Choose a reason for hiding this comment

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

LGTM

@DarianShawn DarianShawn added this pull request to the merge queue Sep 12, 2023
Merged via the queue into dev with commit 8c07b95 Sep 12, 2023
3 of 5 checks passed
@DarianShawn DarianShawn deleted the upstream/bsc-1829-header-downloader-failed branch September 12, 2023 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream upstream PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants