934 and #939 depend on this, it's been deployed in testnet (without the transaction picker fix) and the remaining comments can be resolved in follow-up pull-requests / refactorings as they are cosmetic in nature.
I compiled and ran both unit and functional tests on ubuntu and macos, both worked flawlessly.
Activate Stake Validation, minimum required.
The check is essentially hooked into
ConnectBlock
which is also where it resides in particl: https://github.com/dtr-org/particl-core/blob/0.16/src/validation.cpp#L2335https://youtu.be/FPQlXNH36mI