Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Bugfix: don't crash on re-org of header-only chain #1810
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.
Cute Animal Picture