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

Use unique name for database error file #325

Open
sondreb opened this issue Mar 31, 2021 · 1 comment
Open

Use unique name for database error file #325

sondreb opened this issue Mar 31, 2021 · 1 comment

Comments

@sondreb
Copy link
Member

sondreb commented Mar 31, 2021

It can happen that the database becomes corrupt multiple times so the error backup should have a unique name so that it does not conflict with next time there is an error.

Suggestion:

var dbBackupPath = Path.Combine(dataFolder, $"{wallet.Name}.{DateTime.UnixEpoch}.error.db");
@dangershony
Copy link
Member

So what was decided to use "-" instead of dots?

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