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

Add recovery for utxo db #86

Open
yangl1996 opened this issue Jun 25, 2019 · 1 comment
Open

Add recovery for utxo db #86

yangl1996 opened this issue Jun 25, 2019 · 1 comment

Comments

@yangl1996
Copy link
Owner

We now disable WAL for UTXODB, so should the process crash UTXODB will be in an inconsistent state. The solution is to manually flush the DB, and mark the state when we flush.

@wgr523
Copy link
Collaborator

wgr523 commented Jul 9, 2019

I have two questions:

  1. when do we want to flush?
  2. can we ensure there is no flush other than the manual flush? since we can record the state when manual flush, but automatic flush will not record the state

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

No branches or pull requests

2 participants