Repository navigation
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. External sites
ReviewsSee the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. LLM Linter (✨ experimental)Possible typos and grammar issues:
2026-11-30 20:41:52 |
6959c2c to
fee32ca
Compare
d1fb16e to
8f02103
Compare
8f02103 to
2504434
Compare
|
Concept ACK - good find, helps in code clean up. |
2504434 to
894c154
Compare
|
🚧 At least one of the CI tasks failed. HintsTry to run the tests locally, according to the documentation. However, a CI failure may still
Leave a comment here, if you need help tracking down a confusing failure. |
894c154 to
e4c9aca
Compare
e4c9aca to
7ba8d3e
Compare
Instead of erasing legacy wallet records and tx records from the migrated database, skip copying these records in the first place.
Instead copying all of the address book entries and deleting the ones that are no longer relevant, avoid writing the address book entries in the first place and write only the ones that are relevant to the migrated wallets.
HasLegacyRecords is only used by LoadLegacyWalletRecords to check whether a descriptor wallet has any legacy wallet records. This does not require a CWallet, and is no longer called by anything outside of walletdb.cpp.
7ba8d3e to
7e5389d
Compare

When migrating a legacy wallet, we can skip the records in
MigrateToSQLitethat we would delete later on during migration. These records are specifically all of the legacy wallet records, and transaction records. The legacy wallet records are replaced with descriptor records produced during migration, and transaction records are already being rewritten by migration, so not writing them in the first place is also fine. This allows us to remove several database record erase functions, specifically EraseTx and EraseRecords.