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

backport: partial merge bitcoin#26532: wallet: bugfix, invalid crypted key "checksum_valid" set #5759

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Dec 10, 2023

Issue being fixed or feature implemented

Backports the actual fix only (cc5a5e8) because of merge conflicts.

wallet: bugfix, invalid crypted key "checksum_valid" set

At wallet load time, we set the crypted key "checksum_valid" variable always to false.
Which, on every wallet decryption call, forces the process to re-write the entire ckeys to db when
it's not needed.

The bug was introduced backported via c0c00f9 from #5360.

What was done?

How Has This Been Tested?

try to unlock a wallet with lots of keys w/ and w/out this patch

Breaking Changes

n/a

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation
  • I have assigned this pull request to a milestone (for repository code-owners and collaborators only)

…cksum_valid" set

backports cc5a5e8 only

```
wallet: bugfix, invalid crypted key "checksum_valid" set

At wallet load time, we set the crypted key "checksum_valid" variable always to false.
Which, on every wallet decryption call, forces the process to re-write the entire ckeys to db when
it's not needed.
```
@UdjinM6 UdjinM6 added this to the 20.1 milestone Dec 10, 2023
Copy link
Collaborator

@ogabrielides ogabrielides left a comment

Choose a reason for hiding this comment

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

utACK

@UdjinM6 UdjinM6 changed the title partial merge bitcoin#26532: wallet: bugfix, invalid crypted key "checksum_valid" set backport: partial merge bitcoin#26532: wallet: bugfix, invalid crypted key "checksum_valid" set Dec 11, 2023
Copy link
Collaborator

@knst knst left a comment

Choose a reason for hiding this comment

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

utACK

I tried to backport regtest for this issue (see commit bitcoin@13d9760) but there's indeed too many conflicts at the moment, better to skip it for now.

Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

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

utACK for merging via merge commit

@PastaPastaPasta PastaPastaPasta merged commit 985da9a into dashpay:develop Dec 11, 2023
8 of 11 checks passed
ogabrielides pushed a commit to ogabrielides/dash that referenced this pull request Dec 22, 2023
backport: partial merge bitcoin#26532: wallet: bugfix, invalid crypted key "checksum_valid" set
@UdjinM6 UdjinM6 modified the milestones: 20.1, 20.0.3 Dec 24, 2023
PastaPastaPasta added a commit to ogabrielides/dash that referenced this pull request Dec 24, 2023
backport: partial merge bitcoin#26532: wallet: bugfix, invalid crypted key "checksum_valid" set
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.

5 participants