Remove the legacy wallet and BDB dependency#28710
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/28710. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. 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:
|
d642e26 to
ad3080c
Compare
ad3080c to
fcc606a
Compare
Deletes LegacyScriptPubKeyMan and related tests Best reviewed with `git diff --patience` or `git diff --histogram`
SOme db functions were for BDB, these are no longer needed.
These RPCs no longer exist.
|
re-ACK de054df |
| "\nStops current wallet rescan triggered by an RPC call, e.g. by an importprivkey call.\n" | ||
| "\nStops current wallet rescan triggered by an RPC call, e.g. by an rescanblockchain call.\n" | ||
| "Note: Use \"getwalletinfo\" to query the scanning progress.\n", | ||
| {}, | ||
| RPCResult{RPCResult::Type::BOOL, "", "Whether the abort was successful"}, | ||
| RPCExamples{ | ||
| "\nImport a private key\n" | ||
| + HelpExampleCli("importprivkey", "\"mykey\"") + | ||
| + HelpExampleCli("rescanblockchain", "") + |
There was a problem hiding this comment.
Besides the typo s/an/a above, the comment "Import a private key" doesn't go well with rescanblockchain.
| } | ||
|
|
||
| // Only single key descriptors are allowed to be imported to a legacy wallet's keypool | ||
| bool can_keypool = parsed_descs.at(0)->IsSingleKey(); |
There was a problem hiding this comment.
In #31243, IsSingleKey was added with a TODO to remove it after removing legacy wallets.
I checked that no other usage of IsSingleKey is left, it can be removed.
bitcoin/src/script/descriptor.h
Lines 114 to 117 in 6d5edfc
|
re-ACK de054df 🔗 Show signatureSignature: |
pablomartin4btc
left a comment
There was a problem hiding this comment.
post-merge ACK de054df
|
follow-up in #32438 |
The final step of #20160.
A bare minimum of legacy wallet code is kept in order to perform wallet migration. Migration of legacy wallets uses the independent BDB parser and a minimal
LegacyDataSPKMthat allows the legacy data to be loaded so that the migration can be completed.BDB has been removed as a dependency and documentation have been updated to reflect that.