test: Add SKIP_WRITE edge case to wallet_startup #36378

Manually merged
aaron-leeb merged 1 commit from test-wallet-startup-skip-write into master 2026-11-06 13:06:59 +00:00 AGit
aaron-leeb commented 2026-09-29 03:40:26 +00:00 (Migrated from github.com)

Verifies that reloading a wallet with load_on_startup=True when it is already in the startup list correctly evaluates to SKIP_WRITE and does not emit a warning under -nosettings.

This improves test coverage for the dynamic settings logic introduced in #36176 by ensuring the C++ short-circuit logic properly evaluates the action type before checking the settings path.

This specific edge case was suggested by contributor jeanpablojp here.

Verifies that reloading a wallet with load_on_startup=True when it is already in the startup list correctly evaluates to SKIP_WRITE and does not emit a warning under -nosettings. This improves test coverage for the dynamic settings logic introduced in [#36176](https://github.com/bitcoin/bitcoin/pull/36176) by ensuring the C++ short-circuit logic properly evaluates the action type before checking the settings path. This specific edge case was suggested by contributor jeanpablojp [here](https://github.com/bitcoin/bitcoin/pull/36176#discussion_r3944837660).
DrahtBot commented 2026-09-29 03:40:33 +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 mercie-ux, sedited

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

<!--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/36378 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36378.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36378#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 | [mercie-ux](https://github.com/bitcoin/bitcoin/pull/36378#issuecomment-5929803248), [sedited](https://github.com/bitcoin/bitcoin/pull/36378#pullrequestreview-5800417132) | 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. <!--5faf32d7da4f0f540f40219e4f7537a3-->
First-time contributor

Base: d4b0e1e4b078dbb4ab57886d288470684dec5718
Head: 774dd9b034b3930dd1b5eba350558acc1d9da03c

I found no actionable issues in this static review.

Full review report

<!-- forgejo-review-bot:bitcoin/bitcoin --> Base: `d4b0e1e4b078dbb4ab57886d288470684dec5718` Head: `774dd9b034b3930dd1b5eba350558acc1d9da03c` I found no actionable issues in this static review. [Full review report](<https://review.fish.foo/traces/36378-774dd9b034b3930dd1b5eba350558acc1d9da03c-161-1.html>)
mercie-ux commented 2026-10-01 10:48:28 +00:00 (Migrated from github.com)

ACK 774dd9b
Ran this locally, the test passes and behaves as expected under -nosettings.

ACK 774dd9b Ran this locally, the test passes and behaves as expected under `-nosettings`.
sedited (Migrated from github.com) approved these changes 2026-11-06 13:01:45 +00:00
sedited (Migrated from github.com) left a comment
ACK 774dd9b034b3930dd1b5eba350558acc1d9da03c
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!36378
No description provided.