Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Select new pivot block when world state becomes unavailable #869

Merged
merged 9 commits into from
Feb 15, 2019

Conversation

ajsutton
Copy link
Contributor

PR description

During a fast sync, it's possible that the world state download will still because all our peers have pruned the state for the pivot block. In that case we need to select a newer pivot block and retry fast sync.

This PR does not attempt to detect a stalled WorldStateDownload, but it introduces a WorldStateUnavailable exception which, if it were ever thrown from the world state downloader, would abort the current fast sync and begin the process again so it can select a new pivot block.

Note: Builds on #868 because FutureUtils is nice.

@ajsutton ajsutton merged commit 8158890 into PegaSysEng:master Feb 15, 2019
@ajsutton ajsutton deleted the select-new-pivot-block branch February 15, 2019 20:53
rain-on pushed a commit to rain-on/pantheon that referenced this pull request Feb 18, 2019
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