#36710 test: Replace hardcoded extended keys with ExtendedKey helpers
| Reviewability | Reviews | Agreement | Size | ||||
|---|---|---|---|---|---|---|---|
| #36710 test: Replace hardcoded extended keys with ExtendedKey helpers | Needs rebase | 0 | Crickets | 0 + 42 tests | |||
|
|
|
|
| |||
Reviewability: ReadyStalePaused Agreement: StrongPositivePositive w/ caveatsNeutralMildDisputedBlockedCrickets Reviews: current code-review ACKs, then (+stale ACKs) and -NACKs; greener = more ACKs. Size: lines added or modified outside tests, then in tests; greener = smaller. | |||||||
Goal
Replaces hardcoded extended key string literals (tpub/tprv) across 10 functional test files with dynamically generated keys using the ExtendedPrivateKey test framework helper. This standardizes test key creation following the introduction of extended key test classes.
Problem: Multiple functional tests still rely on hardcoded extended key strings instead of using the standardized ExtendedKey helper classes introduced in PR #35543, keeping test setup patterns inconsistent.
Evidence of importance:
- PR description: 'This PR is a follow-up of PR #35543. I've updated the tests that were still using hardcoded keys, and used the ExtendedKey classes instead.'
Risk of a mistake: low (tests). Touches only functional test files; any mistake would cause test failures in CI without affecting release binaries.
Changed since the previous assessment: Diff provided; confirms direct replacements of static key strings with ExtendedPrivateKey.generate() across 10 test files.
Reviewability
Ready · Needs rebase
Conflicts with master; review the logic now, the rebase is mechanical.
Agreement
Crickets
no substantive comment either way
Objections, suggestions, and questions: none recorded.
Files
81 lines under test/bench/ci.
- test/functional/rpc_getdescriptorinfo.py +10/-8
- test/functional/wallet_miniscript.py +3/-14
- test/functional/wallet_exported_watchonly.py +7/-4
- test/functional/rpc_psbt.py +5/-4
- test/functional/rpc_generate.py +4/-2
- test/functional/wallet_basic.py +4/-2
- test/functional/wallet_listsinceblock.py +4/-2
- test/functional/wallet_backwards_compatibility.py +3/-1
- test/functional/wallet_fundrawtransaction.py +1/-1
- test/functional/wallet_importdescriptors.py +1/-1
Card
The short text the ranking pass compares across PRs.
This PR replaces hardcoded extended key strings (tpub/tprv) with dynamically generated keys using the ExtendedPrivateKey helper class across 10 functional test files. It continues test framework modernization following PR #35543. This is an internal test cleanup with no impact on node behavior or consensus.
Data
labels: Tests, Needs rebase
Categories
Test infrastructure
P4 · cleanup
Adopts ExtendedKey helper classes across 10 functional test files to standardize test key creation. Cleanliness of test code ranks low in test infrastructure with no impact on test reliability or coverage.
Membership: Has the Tests label and refactors test setup across multiple functional tests to adopt framework ExtendedKey helpers.
Factors: security/stability 0, bug 0, performance 0, user value 0, leverage 0