test: remove unused nodes and restarts from wallet tests #36868

Manually merged
w0xlt merged 3 commits from test-wallet-unused-nodes into master 2026-11-19 11:19:32 +00:00 AGit
w0xlt commented 2026-11-14 07:08:46 +00:00 (Migrated from github.com)

Some wallet functional tests start or restart nodes they never use:

  • wallet_basic.py: node 3 hasn't been used since the resendwallettransactions check was removed in 2019 (f5162458cd), but the test still starts, stops and restarts it. Without it, the sync calls no longer need self.nodes[0:3].

  • wallet_signrawtransactionwithwallet.py and wallet_derivehdkey.py each start a second node that is never used.

  • wallet_sendall.py restarts 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.

Some wallet functional tests start or restart nodes they never use: - `wallet_basic.py`: node 3 hasn't been used since the `resendwallettransactions` check was removed in 2019 (f5162458cd), but the test still starts, stops and restarts it. Without it, the sync calls no longer need `self.nodes[0:3]`. - `wallet_signrawtransactionwithwallet.py` and `wallet_derivehdkey.py` each start a second node that is never used. - `wallet_sendall.py` restarts 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.
DrahtBot commented 2026-11-14 07:08:54 +00:00 (Migrated from github.com)

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.

Type Reviewers
ACK ViniciusCestarii, adezo24h1, brunoerg, murchandamus, maflcko

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:

  • #36387 (wallet: rpc: Deprecate encryptwallet RPC 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.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/36868 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36868.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36868#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | ACK | [ViniciusCestarii](https://github.com/bitcoin/bitcoin/pull/36868#pullrequestreview-5904555702), [adezo24h1](https://github.com/bitcoin/bitcoin/pull/36868#issuecomment-6884742359), [brunoerg](https://github.com/bitcoin/bitcoin/pull/36868#pullrequestreview-5921437216), [murchandamus](https://github.com/bitcoin/bitcoin/pull/36868#pullrequestreview-5928103089), [maflcko](https://github.com/bitcoin/bitcoin/pull/36868#pullrequestreview-5973855054) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--174a7506f384e20aa4161008e828411d--> ### Conflicts Reviewers, this pull request conflicts with the following ones: * [#36387](https://github.com/bitcoin/bitcoin/pull/36387) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36387.svg"></sub> (wallet: rpc: Deprecate `encryptwallet` RPC 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. <!--5faf32d7da4f0f540f40219e4f7537a3-->
First-time contributor

No verified findings are available from this review.

Review coverage was incomplete.


Reviewed: afbe6cd25ef7 · Review report · Previous reports

permalink

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:6a916fa059320c1e3f0a79c4f7490636461ad967153b8442c21450419af74010:24633968ff336fb935794e53e586f29b4eaaa2a15575a2c0392a2c8b9ace382c --> <!-- ralph-base:a527a0077a0fcae913188410214efe98021c0cca --> <!-- ralph-head:afbe6cd25ef72a7975c406ae8e036b30fb2e1ce3 --> <!-- ralph-case:a8e601581542a6e8fc02c2d902b255f3aa6e4abfa34caa9acf415a67cbdc51dd --> No verified findings are available from this review. Review coverage was incomplete. <!-- Review tier: routine --> --- Reviewed: [`afbe6cd25ef7`](<https://git.fish.foo/bitcoin/bitcoin/commit/afbe6cd25ef72a7975c406ae8e036b30fb2e1ce3>) · [Review report](<https://review.fish.foo/report/36868-afbe6cd25ef72a7975c406ae8e036b30fb2e1ce3-2673-1.html>) · [Previous reports](<https://review.fish.foo/traces/36868/>) [permalink](<https://review.fish.foo/report/36868-afbe6cd25ef72a7975c406ae8e036b30fb2e1ce3-2673-1.html>)
fanquake commented 2026-11-14 09:21:22 +00:00 (Migrated from github.com)

cc @ViniciusCestarii

cc @ViniciusCestarii
ViniciusCestarii (Migrated from github.com) reviewed 2026-11-14 13:37:49 +00:00
ViniciusCestarii (Migrated from github.com) left a comment

tACK afbe6cd25e

Verified that this doesn't change behavior. wallet_basic.py looks cleaner and it gives a small performance boost.

tACK afbe6cd25ef72a7975c406ae8e036b30fb2e1ce3 Verified that this doesn't change behavior. wallet_basic.py looks cleaner and it gives a small performance boost.
adezo24h1 commented 2026-11-14 21:51:07 +00:00 (Migrated from github.com)

tACK afbe6cd25e

tACK afbe6cd25ef72a7975c406ae8e036b30fb2e1ce3
brunoerg (Migrated from github.com) approved these changes 2026-11-16 14:15:22 +00:00
brunoerg (Migrated from github.com) left a comment

code review ACK afbe6cd25e

code review ACK afbe6cd25ef72a7975c406ae8e036b30fb2e1ce3
murchandamus (Migrated from github.com) reviewed 2026-11-16 21:32:31 +00:00
murchandamus (Migrated from github.com) left a comment
ACK afbe6cd25ef72a7975c406ae8e036b30fb2e1ce3
maflcko (Migrated from github.com) reviewed 2026-11-19 11:07:31 +00:00
maflcko (Migrated from github.com) left a comment

nice cleanup

review ACK afbe6cd25e 🍙

Show signature

Signature:

untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}"
RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM=
trusted comment: review ACK afbe6cd25ef72a7975c406ae8e036b30fb2e1ce3 🍙
FUOymoD8Su3jWbbd8YENl6rrGpJnBjH/2V94cSCdoyh0ZnYTHIh1WUIEmRuFbe18Icg67aDHRIlYhUvZ2OulAQ==
nice cleanup review ACK afbe6cd25ef72a7975c406ae8e036b30fb2e1ce3 🍙 <details><summary>Show signature</summary> Signature: ``` untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}" RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM= trusted comment: review ACK afbe6cd25ef72a7975c406ae8e036b30fb2e1ce3 🍙 FUOymoD8Su3jWbbd8YENl6rrGpJnBjH/2V94cSCdoyh0ZnYTHIh1WUIEmRuFbe18Icg67aDHRIlYhUvZ2OulAQ== ``` </details>
maflcko (Migrated from github.com) commented 2026-11-19 11:07:25 +00:00

obviously no need to re-touch with all the acks, but it would be good to remove the hard-coded 3 here as well. in 4f0d4e11c1

obviously no need to re-touch with all the acks, but it would be good to remove the hard-coded `3` here as well. in 4f0d4e11c1e999634ae5c34281ce3af402bfa879
maflcko (Migrated from github.com) reviewed 2026-11-19 12:32:47 +00:00
maflcko (Migrated from github.com) commented 2026-11-19 12:32:47 +00:00
fixed in https://github.com/bitcoin/bitcoin/pull/36914
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!36868
No description provided.