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

[1.0.2] Prevent sync ahead in irreversible mode #811

Merged
merged 3 commits into from
Sep 24, 2024

Conversation

heifner
Copy link
Member

@heifner heifner commented Sep 23, 2024

Issue #789 was to create a test that verifies #777. The new test exposed an issue with the current implementation that would allow it to sync ahead too far when blocks have not made it to the fork database yet. Includes a fix that verifies fork database has the block being evaluated before considering syncing ahead.

Failing test before fix: https://github.com/AntelopeIO/spring/actions/runs/11002592099

Resolves #789

…nc too far ahead. Also increase number of blocks produced at start so that nodes are in lib catchup during sync. Verify all nodes are able to sync without a block log.
@heifner heifner linked an issue Sep 23, 2024 that may be closed by this pull request
@heifner heifner added the OCI Work exclusive to OCI team label Sep 23, 2024
@@ -687,6 +687,27 @@ def findInLog(self, searchStr):
return True
return False

def linesInLog(self, searchStr):
Copy link
Member

Choose a reason for hiding this comment

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

Like those two common functions are defined here.

@heifner heifner merged commit a5f0a7f into release/1.0 Sep 24, 2024
36 checks passed
@heifner heifner deleted the GH-789-sync-ahead branch September 24, 2024 12:56
@ericpassmore
Copy link
Contributor

Note:start
category: Other
component: P2P
summary: Prevent sync ahead in irreversible mode.
Note:end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add test that net_plugin does not sync ahead beyond limit
4 participants