This PR contains two commits:
-
Fixes a typo in feature_pruning.py where ’nTimes’ was incorrectly used instead of ’nTime’. This typo caused the test to always reset mine_large_blocks.nTime to 0, rather than only on the first run.
-
Fixes the test failure exposed by the typo fix. The test_pruneheight_undo_presence test was failing because it was using node 2, which is involved in reorg testing and could be on a different chain than other nodes. The solution switches to using node 5, which is also a pruned node but isn’t involved in reorg testing.
Testing:
- Ran test/functional/feature_pruning.py multiple times to verify consistent passing
- Verified that the test now passes with the correct nTime variable name
- Confirmed the test behavior matches the intended functionality of verifying pruned block availability
- Ran the full test suite to ensure the changes did not introduce any regressions or affect other tests
Thanks to fjahr for his assistance in diagnosing the issue and suggesting the solution.
This fixes the test failure reported in #32249