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

Missing subchain, fail when no chain with start block #7914

Merged
merged 3 commits into from
Feb 17, 2021

Conversation

psteckler
Copy link
Member

@psteckler psteckler commented Feb 16, 2021

If given a start block that didn't exist, or there was an unparented block between the start and end blocks, missing_subchain would yield a chain only as far back as the first unparented block, when searching backwards from the end block. The user was none the wiser.

Instead, fail in those cases.

Tested on a Rosetta-generated archive db, by creating an unparented block in the middle of what was a chain between the start and end blocks.

Closes #7911.

@psteckler psteckler added the ci-build-me Add this label to trigger a circle+buildkite build for this branch label Feb 16, 2021
@psteckler psteckler added ci-build-me Add this label to trigger a circle+buildkite build for this branch and removed ci-build-me Add this label to trigger a circle+buildkite build for this branch labels Feb 17, 2021
@aneesharaines
Copy link
Contributor

!approved-for-mainnet

@mrmr1993 mrmr1993 merged commit 620b7c7 into compatible Feb 17, 2021
@mrmr1993 mrmr1993 deleted the feature/missing-subchain-no-start-block branch February 17, 2021 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-build-me Add this label to trigger a circle+buildkite build for this branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants