-
Notifications
You must be signed in to change notification settings - Fork 217
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
assign default encryption scheme for passphrase with none. #1704
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like a fix that addresses the case when we had updated password that had not passphrase schema and was not exposed (because resulted in Nothing)
Alternatively, we could solve this via manual migration...
This is cleaner than doing some add-hoc transformation when the wallet gets read from the database. And, it allows for some unit testing to happen!
@@ -378,6 +414,7 @@ migrateManually tr defaultFieldValues = | |||
_ <- Sqlite.step addColumn | |||
Sqlite.finalize addColumn | |||
where | |||
activeSlotCoeff = DBField CheckpointActiveSlotCoeff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved from above.
@@ -353,6 +388,7 @@ migrateManually tr defaultFieldValues = | |||
Sqlite.finalize stmt | |||
where | |||
hardLowerBound = toText $ fromEnum $ minBound @(Index 'Hardened _) | |||
rndAccountIx = DBField RndStateAddressAccountIndex |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved from above.
…rking as intended
5762d5a
to
05b6fd7
Compare
bors r+ |
1704: assign default encryption scheme for passphrase with none. r=KtorZ a=KtorZ # Issue Number <!-- Put here a reference to the issue this PR relates to and which requirements it tackles --> #1701 # Overview <!-- Detail in a few bullet points the work accomplished in this PR --> - a4dd767 📍 **assign default encryption scheme for passphrase with none.** # Comments <!-- Additional comments or screenshots to attach if any --> cc @nikolaglumac <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Once created, link this PR to its corresponding ticket ✓ Assign the PR to a corresponding milestone ✓ Acknowledge any changes required to the Wiki --> Co-authored-by: KtorZ <[email protected]>
Build failed |
bors retry |
1704: assign default encryption scheme for passphrase with none. r=KtorZ a=KtorZ # Issue Number <!-- Put here a reference to the issue this PR relates to and which requirements it tackles --> #1701 # Overview <!-- Detail in a few bullet points the work accomplished in this PR --> - a4dd767 📍 **assign default encryption scheme for passphrase with none.** # Comments <!-- Additional comments or screenshots to attach if any --> cc @nikolaglumac <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Once created, link this PR to its corresponding ticket ✓ Assign the PR to a corresponding milestone ✓ Acknowledge any changes required to the Wiki --> Co-authored-by: KtorZ <[email protected]>
Build failed |
Issue Number
#1701
Overview
📍 assign default encryption scheme for passphrase with none.
Comments
cc @nikolaglumac