> Change: Update the if statement in setmocktime to use IsMockableChain chainparams function (aka m_is_mockable_chain) instead of MineBlocksOnDemand
>
> Rationale: It's a more appropriate check for whether or not chain is in RegTest, as discussed in [[https://github.com/bitcoin/bitcoin/pull/18037 | PR18037]]
This is a backport of Core [[https://github.com/bitcoin/bitcoin/pull/17921 | PR17921]]