Review report

core: PR #36710

1 minor finding

Findings

Link

[minor] · Module-level keys are generated before the test PRNG is seeded

Rerunning with the logged --randomseed produces different keys and descriptors, so failures involving them cannot be reproduced from that seed.

Location: test/functional/wallet_miniscript.py:14 (head).

Details and suggested fix

The module generates TPRVS and TPUBS when it is imported, before BitcoinTestFramework.setup() seeds the PRNG. The generated keys and descriptors derived from them therefore differ across runs, even when rerunning with the logged --randomseed. The descriptors are logged and can still be rebuilt by hand, and no key-dependent failure has been identified. Generate the keys and dependent descriptors inside run_test(), or use fixed seeds with ExtendedPrivateKey.from_seed().


Coverage details