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

[4.0 -> main] Fix for loading a snapshot with an empty block log but an existing fork database #1304

Merged
merged 8 commits into from
Jun 15, 2023

Conversation

heifner
Copy link
Member

@heifner heifner commented Jun 15, 2023

Additional test cases and fix for loading a snapshot without a block log. When loading a snapshot with a block log, the block log and fork database can be replayed if they start at or before the snapshot. If no block log exists, for example running with --block-log-retain-blocks 0, then the fork database can't be consider valid.

Includes a fix for new test introduced in #1276 which failed during ci/cd. ship_streamer.cpp updated to correctly handle forks.

Corner case related to #1228

Merges release/4.0 into main including #1299

@heifner heifner requested review from greg7mdp and linh2931 June 15, 2023 15:39
@heifner heifner linked an issue Jun 15, 2023 that may be closed by this pull request
@heifner heifner added the OCI Work exclusive to OCI team label Jun 15, 2023
@heifner heifner merged commit 6a44686 into main Jun 15, 2023
@heifner heifner deleted the GH-1228-empty-blocklog-main branch June 15, 2023 16:11
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.

Starting node from a snapshot fails if the node has no blocks
3 participants