mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 11:50:39 +00:00
test: remove unused nodes and restarts from wallet tests #36868
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!36868
Loading…
Reference in a new issue
No description provided.
Delete branch "test-wallet-unused-nodes"
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?
Some wallet functional tests start or restart nodes they never use:
wallet_basic.py: node 3 hasn't been used since theresendwallettransactionscheck was removed in 2019 (f5162458cd), but the test still starts, stops and restarts it. Without it, the sync calls no longer needself.nodes[0:3].wallet_signrawtransactionwithwallet.pyandwallet_derivehdkey.pyeach start a second node that is never used.wallet_sendall.pyrestarts node 0 and reloads its wallets twice in a row with the same arguments.No coverage changes. Each test runs a bit faster, about 0.2–0.4 s per test locally.
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.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.Conflicts
Reviewers, this pull request conflicts with the following ones:
encryptwalletRPC for encrypting existing wallets. by davidgumberg)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 verified findings are available from this review.
Review coverage was incomplete.
Reviewed:
afbe6cd25ef7· Review report · Previous reportspermalink
cc @ViniciusCestarii
tACK
afbe6cd25eVerified that this doesn't change behavior. wallet_basic.py looks cleaner and it gives a small performance boost.
tACK
afbe6cd25ecode review ACK
afbe6cd25eACK
afbe6cd25enice cleanup
review ACK
afbe6cd25e🍙Show signature
Signature:
obviously no need to re-touch with all the acks, but it would be good to remove the hard-coded
3here as well. in4f0d4e11c1fixed in https://github.com/bitcoin/bitcoin/pull/36914