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

Force flush when reorg #236

Closed
wants to merge 2 commits into from
Closed

Conversation

wizz-wallet-dev
Copy link
Collaborator

A crazy amount of reorganization happens on Bitcoin Testnet 3 almost every day, blocks can be reorg-ed within 3 blocks as the edge case. The reorg will cause the flush data to run into an incomplete state and the flush operation will fail due to the assertion, which will cause the system to crash.

By setting force flush for the reorg, the flush data will be ignored and filled by the reorg data without throwing any exceptions.

@wizz-wallet-dev
Copy link
Collaborator Author

Closing in flavor of #237

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.

1 participant