This extracts one of the commits out of #16411 as it seems like a reasonable refactor on its own.
Basically, remove the redundant pindexPrev argument from TestBlockValidity. It doesn't support anything other than the current chain tip, anyway.
This extracts one of the commits out of #16411 as it seems like a reasonable refactor on its own.
Basically, remove the redundant pindexPrev argument from TestBlockValidity. It doesn't support anything other than the current chain tip, anyway.