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

orphan check needs to handle fast sync "edge case" #3418

Merged
merged 1 commit into from
Aug 8, 2020

Conversation

antiochp
Copy link
Member

@antiochp antiochp commented Aug 8, 2020

Resolves #3417

We moved the "is_orphan" check earlier in the block processing pipeline.
As part of this refactoring we made an incorrect assumption about always having the previous block.
This check needs to handle the "edge case" during initial fast sync where we have no previous full block and only have the txhashset state at the horizon.

This is not the first time we have unintentionally broken block sync in this way and is unlikely to be the last.
We always have the previous full block except during fast sync > 1 week.

@antiochp
Copy link
Member Author

antiochp commented Aug 8, 2020

Going to merge as master is currently broken for folks syncing from scratch.

@antiochp antiochp merged commit 34adaf7 into mimblewimble:master Aug 8, 2020
@antiochp antiochp mentioned this pull request Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

always get stuck at 99% of Downloading blocks
1 participant