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

fix: force wallet sqlite to do checkpoint after db decryption #4905

Merged

Conversation

SWvheerden
Copy link
Collaborator

Description

Forces the database to do a checkpoint after the last step of the database decryption.

Motivation and Context

The mobile applications decrypt the SQLite wallet database, after which they copy it to a safe location to restore later.
If we run database decrypt, the actual database file might not yet have the changes applied to it, this forces a checkpoint which will ensure that the changes are committed to on file

How Has This Been Tested?

manual

Fixes: #4904

force sqlite db to do checkpoint
@sdbondi
Copy link
Member

sdbondi commented Nov 9, 2022

Ah great so that was the problem?

What does (2) mean? I do not see it in the docs
https://www.sqlite.org/pragma.html#pragma_wal_checkpoint

@CjS77 CjS77 added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Nov 9, 2022
@SWvheerden
Copy link
Collaborator Author

@CjS77 CjS77 removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Nov 9, 2022
@stringhandler stringhandler merged commit 55d1334 into tari-project:development Nov 9, 2022
@SWvheerden SWvheerden deleted the sw_fix_db_decrypt branch November 10, 2022 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wallet FFI remove_encryption does not block while busy
4 participants