mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
2aa63d511atest: Use uninvolved pruned node in feature_pruning undo test (enoch)772ba7f9cetest: Fix nTimes typo in feature_pruning test (enoch) Pull request description: This PR contains two commits: 1. 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. 2. 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 ACKs for top commit: fjahr: tACK2aa63d511amaflcko: lgtm ACK2aa63d511anaiyoma: tACK2aa63d511astratospher: tested ACK2aa63d5. verified that `nTime` is being incremented now. Tree-SHA512: a543528fd4eeb30e978c0b43cfa109768252edaf1f94679dbbc7fe684122c00da34224e2cc1abd2a265af1b267eef1cd34246207946cf7d8e93d2c0f11aa56d8
23 KiB
Executable File
23 KiB
Executable File