Skip to content

Conversation

heifner
Copy link
Member

@heifner heifner commented Jul 11, 2024

Fix starting from snapshot created during transition when no block log is provided.
Add new test case that starts from a snapshot created during transition after removing the block log.

Resolves #345

@heifner heifner requested review from linh2931 and greg7mdp July 11, 2024 19:32
@heifner heifner added the OCI Work exclusive to OCI team label Jul 11, 2024
@heifner
Copy link
Member Author

heifner commented Jul 11, 2024

Something not right, as it failed: https://github.com/AntelopeIO/spring/actions/runs/9897805335/job/27343685063
Fixed

@heifner heifner requested a review from linh2931 July 12, 2024 20:52
// before transition_to_savanna is called.
const bool skip_validate_signee = true; // validated already
dlog("Create irreversible transition block ${bn}", ("bn", legacy_root->block_num()));
auto new_bsp = block_state::create_transition_block(
Copy link
Member

@linh2931 linh2931 Jul 13, 2024

Choose a reason for hiding this comment

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

new_bsp can be named as new_root. But not a big deal.

@ericpassmore
Copy link
Contributor

Note:start
group: STABILITY
category: BUG
summary: Proper snapshot during transition when block log is not present.
Note:end

@heifner heifner requested review from greg7mdp and linh2931 July 17, 2024 20:59
@heifner heifner merged commit b885db0 into main Jul 18, 2024
@heifner heifner deleted the GH-345-transition-test branch July 18, 2024 14:14
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 a test for restarting from snapshot after blocks are removed during transition to Savanna
4 participants