Addresses #32531
This is a Work In Progress, not ready for review yet.
Currently updating functional tests to replace direct use of invalidateblock
with proper fork-based reorg behaviour. The direct invalidation approach bypasses important validation checks and has depth limitations(10 block) that don’t match real-world reorg scenarios.
Plan:
- Fix mempool_ephemeral_dust.py reorg patterns
- Audit and fix other mempool_*.py tests
- Update any additional tests using problematic reorg patterns
Will mark ready for review once all functional tests are updated and verified.