Skip to content

Missing Rollback - PushBlock() call #1362

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

Merged
merged 1 commit into from
Nov 23, 2020
Merged

Missing Rollback - PushBlock() call #1362

merged 1 commit into from
Nov 23, 2020

Conversation

andy-shi88
Copy link
Contributor

Description

This PR handle rollback in a few places where PushBlock may fail, the missing call of rollback() can cause node to:

  • unable to process block, propagate to (failed process fork, failed block download) and many other db operation failure due to lock
  • result in SQLITE_BUSY error which being reported as database is locked due to sqlite implementation
  • missing error of these function failures

…se deadlock, SQLITE_BUSY (reported as database lock error) which later cause unresolveable fork due to inability to process block
@andy-shi88 andy-shi88 self-assigned this Nov 21, 2020
@andy-shi88 andy-shi88 added the BUG Something isn't working label Nov 21, 2020
Copy link
Contributor

@iltoga iltoga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇

@iltoga iltoga merged commit 932d196 into zoobc:develop Nov 23, 2020
@andy-shi88 andy-shi88 deleted the fix-PushBlock-missing-rollback branch December 10, 2020 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants