Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

If a snapshot listed in latest.json is interrupted when loading, fix it #1157

Merged
merged 1 commit into from
Dec 14, 2021

Conversation

Vagabond
Copy link
Contributor

Previous to this change if a latest.json snap was loading and it was
interrupted (OOM, unplug, power loss, etc) the node would get stuck
trying to sync with an incomplete chain because the code didn't check
the latest.json snap when initializing the chain, only once the chain
had started. This would lead to a blessed snapshot in the config file
being "older" than the chain, but the chain being incomplete as a result
of an interrupted snapshot load from a latest.json snapshot at a higher
height.

Previous to this change if a latest.json snap was loading and it was
interrupted (OOM, unplug, power loss, etc) the node would get stuck
trying to sync with an incomplete chain because the code didn't check
the latest.json snap when initializing the chain, only once the chain
had started. This would lead to a blessed snapshot in the config file
being "older" than the chain, but the chain being incomplete as a result
of an interrupted snapshot load from a latest.json snapshot at a higher
height.
@evanmcc evanmcc merged commit e6725c7 into master Dec 14, 2021
@evanmcc evanmcc deleted the adt/fix-interrupted-lastest-snap-load branch December 14, 2021 01:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants