mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:50:37 +00:00
test/mutation: check wallet listings and wrapped P2WSH addresses in wallet_migration.py #36968
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36968
Loading…
Reference in a new issue
No description provided.
Delete branch "l0rinc/test-wallet-migration-listing-checks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem: The migration test checks the legacy-wallet warning only if it finds the wallet in
listwalletdir, so a missing wallet goes unnoticed.It skips the warning check for
path/to/trailing/even when the wallet is listed because the returned name has no trailing separator.After migration, the test looks for a dictionary containing only the backup name, but every entry also has a
warningsfield, so the check passes even if the backup is listed.The P2WSH test imports a wrapped output but checks only the native address after migration.
Fix: Require
listwalletdirto return the legacy wallet with its migration warning, then check that the backup filename is absent from the listed names after migration.For both the native and wrapped addresses, check that
getaddressinforeportsismineas true and includes theembeddedfield.Mutation tests: To test each change, apply the mutation in its commit message and run
wallet_migration.py.The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
A summary of reviews will appear here.
Conflicts
Reviewers, 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.
No findings were published from this review.
Review coverage was incomplete.
Reviewed:
6e765add24b6· Review report · Previous reportspermalink
I think it is better to share mutations via a git diff, and not via some bash script
I wanted to avoid adding 9 more lines to a commit message, but if this is simpler for reviewers, I don't mind: pushed, thanks.
🐙 This pull request conflicts with the target branch and needs rebase.
Rebased on #34193, kept its cleanup check, and limited the pre-migration
listwalletdircheck to wallets it can list.