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

Bugfix: don't crash on re-org of header-only chain #1810

Merged
merged 2 commits into from
Aug 5, 2019

Conversation

carver
Copy link
Contributor

@carver carver commented Aug 5, 2019

What was wrong?

When a chain reorg's, it tries to remove the canonical transactions from the lookup db. If that chain is header-only, it crashes, because the canonical transactions were never inserted.

How was it fixed?

Catch and drop the exception if canonical transactions were missing. The point was to delete them, so if they are missing: mission accomplished.

To-Do

  • Clean up commit history

Cute Animal Picture

put a cute animal picture link inside the parentheses

@carver carver merged commit d2ccc1e into ethereum:master Aug 5, 2019
@carver carver deleted the reorg-with-missing-block-bodies branch August 5, 2019 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants