Problem: While reviewing #35847, a few hardening opportunities came up in the test helpers that attach active-tip block templates to arbitrary parents. The copied work target and subsidy may describe a different child, and rebuilding a coinbase input script from heights 1 through 16 without padding violates its minimum length. Existing callers already avoid these cases or handle them locally, so no current test fails.
Fix: Share the parent-dependent reconstruction between BuildChain() and MinerTestingSetup::Block().
Use the caller-selected timestamp, recalculate the work target and subsidy for the actual parent and height, and append a dummy OP_0 to low-height coinbase input scripts.
Require the validation setup's completed block to retain the reconstructed locktime, script, and subsidy.