Skip to content

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

Merged
PastaPastaPasta merged 1 commit into
dashpay:developfrom
UdjinM6:bp26532
Dec 11, 2023
Merged

PastaPastaPasta merged 1 commit into
dashpay:developfrom
UdjinM6:bp26532

Conversation

@UdjinM6

@UdjinM6 UdjinM6 commented Dec 10, 2023

Copy link
Copy Markdown

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

@ogabrielides ogabrielides left a comment

Copy link
Copy Markdown

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

@knst knst left a comment

Copy link
Copy Markdown
Collaborator

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.

@PastaPastaPasta PastaPastaPasta left a comment

Copy link
Copy Markdown
Member

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
@UdjinM6 UdjinM6 modified the milestones: 20.1, 20.0.3 Dec 24, 2023
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