Skip to content

Split P2MR wallet unit tests - #52

Merged
kiwidream merged 1 commit into
0.1.xfrom
split-p2mr-wallet-tests
Jun 29, 2026
Merged

kiwidream merged 1 commit into
0.1.xfrom
split-p2mr-wallet-tests

Conversation

@kiwidream

@kiwidream kiwidream commented Jun 29, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Split the P2MR-heavy wallet unit tests out of wallet_tests into a new wallet_p2mr_tests Boost suite.
  • Register wallet_p2mr_tests.cpp in the wallet unit test CMake sources so CTest discovers a separate entry with its own timeout budget.
  • Leave the historical non-P2MR wallet tests in wallet_tests.

Validation

  • cmake -B build -GNinja -DBUILD_TESTS=ON -DENABLE_WALLET=ON -DBUILD_GUI=OFF -DBUILD_BENCH=OFF -DBUILD_FUZZ_BINARY=OFF -DBUILD_DAEMON=OFF -DBUILD_CLI=OFF -DBUILD_TX=OFF -DBUILD_UTIL=OFF -DBUILD_UTIL_CHAINSTATE=OFF -DBUILD_WALLET_TOOL=OFF
  • cmake --build build --target test_qbit
  • build/bin/test_qbit --run_test=wallet_tests
  • build/bin/test_qbit --run_test=wallet_p2mr_tests
  • ctest --test-dir build -N -R 'wallet(_p2mr)?_tests'
  • ctest --test-dir build -R '^(wallet_tests|wallet_p2mr_tests)$' --output-on-failure
  • git diff --check
  • Docker lint via bitcoin-linter image with the workspace and backing worktree git directory mounted

View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.


Note

Low Risk
Test-only change (new suite file and CMake listing); no wallet runtime code is modified in this diff.

Overview
Moves P2MR-focused wallet unit tests into a dedicated Boost suite wallet_p2mr_tests and registers wallet_p2mr_tests.cpp in the wallet test CMake sources so CTest can run it separately from wallet_tests (own timeout budget).

The new file is a large, self-contained suite (fixtures for regtest -p2mronly, helpers for P2MR descriptors/signing) covering P2MR defaults and output-type availability, deferred/warm keypool top-up and scheduler reload behavior, receive/change address low-watermark refills, encrypted-wallet edge cases, plaintext PQC key validation and DB integrity, P2MR spend signing (including parallel PQC counter reservation), and change-type fallbacks—not new wallet behavior, just relocated/isolated test coverage.

Reviewed by Cursor Bugbot for commit 1559fce. Bugbot is set up for automated code reviews on this repo. Configure here.

@kiwidream

Copy link
Copy Markdown
Member Author

This split should be expedited because the current monolithic wallet_tests CTest entry is timing out under MSan and blocking CI for unrelated PRs. The failure mode is the single-suite timeout budget, not a sanitizer report, so getting this merged should unblock other work waiting on full validation.

@kiwidream
kiwidream merged commit 3e036bd into 0.1.x Jun 29, 2026
19 of 20 checks passed
djh58 pushed a commit that referenced this pull request Jul 2, 2026
* Accept legacy AuxPoW RPC payloads (#23)

* Prevent AuxPoW signalling in permissionless GBT (#22)

* wallet: defer P2MR getnewaddress keypool refill (#13)

* wallet: defer P2MR getnewaddress keypool refill

* wallet: bound internal P2MR keypool refill

* wallet: align P2MR top-up lock ordering

* wallet: schedule raw change P2MR refills

* wallet: report paused P2MR refills as failed

* wallet: log inline P2MR refill failures

* ci: fix BuildKit helper lint

* Document AuxPoW commitment order fields (#35)

* Restrict explicit wallet output types on P2MR-only chains (#25)

* Restrict explicit wallet output types

* test: run BECH32 wallet suites on unrestricted regtest

* fuzz: run wallet transaction target on unrestricted regtest

* Fix BuildKit helper lint

* Report missing wallet output managers accurately

* Allow managerless wallets with default output options

* test: add independent P2MR and CTV script vectors (#29)

* Add independent P2MR PQC witness vector tests (#30)

* test: add independent P2MR PQC witness vector

* test: verify P2MR wrong-domain vector signature

* Fix AuxPoW legacy payload disambiguation

* wallet: avoid MarkUnused P2MR full top-up (#31)

* wallet: avoid MarkUnused P2MR full top-up

* wallet: avoid MarkUnused lock inversion

* wallet: preserve P2MR recovery lookahead

* Split P2MR wallet unit tests (#52)

* Remove unused P2MR wallet test import (#58)

* Shard P2MR wallet unit tests (#60)

* Add independent CHECKDATASIGPQC vector tests (#38)

* test: add P2MR data-hash proof fixtures (#43)

* test: add independent P2MR commitment vectors (#47)

* Reject invalid raw funding outputs (#37)

* Validate witness-pruned assumevalid before wipe (#59)

* Add independent CHECKDATASIGADDPQC vector tests (#42)

* qt: recommend wallet encryption by default (#62)

* Verify libbitcoinpqc tagged subtree imports (#41)

* ci: verify libbitcoinpqc tagged subtree imports

* ci: handle peeled libbitcoinpqc tag refs

* ci: peel libbitcoinpqc tag objects before compare

* ci: pass auth to libbitcoinpqc verifier

* ci: pin libbitcoinpqc verifier inputs

* ci: verify libbitcoinpqc import tree

* Add P2MR PQC annex sighash vectors (#54)

* Add P2MR PQC annex sighash vectors

* Guard annex mutation vector test

* Add P2MR data signature support to Qt Sign/Verify (#63)

* qt: add P2MR data signature dialog

* qt: support text data in P2MR signatures

* qt: align P2MR proof verification with RPC

* test: add P2MR CHECKSIGPQC sighash vectors (#55)

* Add rawmr future-leaf coverage (#64)

* test: cover P2MR SIGHASH_SINGLE missing outputs (#57)

* test: add P2MR PQC codeseparator vectors (#56)

* Fix PQC data-hash counter accounting (#46)

* Fix PQC data-hash counter accounting

* Fix PQC data-hash leaf error priority

* Report final PQC slot failures as exhausted

* doc: add v0.1.2-testnet4 release notes

* build: bump version to v0.1.2-testnet4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant