DisconnectedBlockTransactions::LimitMemoryUsage()
has unit test coverage, but the default value end to end doesn’t have coverage.
This test adds exercised coverage of memory limiting of the disconnect pool, and some basic behavior sanity checks.
Another test added is making sure chainlimits are being respected on reorg, and the expected transactions pruned.
Lastly, fix the existing test case which was using a deficient test via directly inducing reorgs with invalidateblock