-
Notifications
You must be signed in to change notification settings - Fork 256
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
Add WalletRead::get_seed_account
#1259
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,8 +70,8 @@ impl<P: consensus::Parameters> RusqliteMigration for Migration<P> { | |
) | ||
); | ||
CREATE UNIQUE INDEX hd_account ON accounts_new (hd_seed_fingerprint, hd_account_index); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't understand the full subtleties of
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I was looking at this today. I think that the |
||
CREATE UNIQUE INDEX accounts_uivk ON accounts_new ("uivk"); | ||
CREATE UNIQUE INDEX accounts_ufvk ON accounts_new ("ufvk"); | ||
CREATE UNIQUE INDEX accounts_uivk ON accounts_new (uivk); | ||
CREATE UNIQUE INDEX accounts_ufvk ON accounts_new (ufvk); | ||
"#), | ||
)?; | ||
|
||
|
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.
Thanks for adding this; I was unaware that uniqueness constraints were starting to be embedded in the indices (which prior to now I only thought were present for performance). I rely heavily on changes to
init.rs
to track changes to the database structure and determine what constraints are applied.