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

Check for chain_head.dat on snapshot load #559

Closed
heifner opened this issue Aug 15, 2024 · 0 comments · Fixed by #581 or #585
Closed

Check for chain_head.dat on snapshot load #559

heifner opened this issue Aug 15, 2024 · 0 comments · Fixed by #581 or #585
Assignees
Labels
bug The product is not working as was intended. 👍 lgtm OCI Work exclusive to OCI team

Comments

@heifner
Copy link
Member

heifner commented Aug 15, 2024

Currently we check that a shared_memory.bin doesn't exist when loading a snapshot. With the addition of chain_head.dat we should also check for that.

         auto shared_mem_path = chain_config->state_dir / "shared_memory.bin";
         EOS_ASSERT( !std::filesystem::is_regular_file(shared_mem_path),
                 plugin_config_exception,
                 "Snapshot can only be used to initialize an empty database." );
@arhag arhag added 👍 lgtm and removed triage labels Aug 15, 2024
@arhag arhag added this to the Spring v1.0.0-rc2 milestone Aug 15, 2024
@arhag arhag added the bug The product is not working as was intended. label Aug 16, 2024
@heifner heifner self-assigned this Aug 19, 2024
@heifner heifner added the OCI Work exclusive to OCI team label Aug 19, 2024
@heifner heifner linked a pull request Aug 19, 2024 that will close this issue
heifner added a commit that referenced this issue Aug 19, 2024
[1.0] Verify chain_head.dat does not exist on snapshot load
heifner added a commit that referenced this issue Aug 19, 2024
heifner added a commit that referenced this issue Aug 19, 2024
[1.0 -> main] Verify chain_head.dat does not exist on snapshot load
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The product is not working as was intended. 👍 lgtm OCI Work exclusive to OCI team
Projects
Archived in project
3 participants