Page MenuHomePhabricator

[rpc] changed MineBlocksOnDemand to IsMockableChain
ClosedPublic

Authored by PiRK on Jan 5 2021, 10:39.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCaa3561df3367: [rpc] changed MineBlocksOnDemand to IsMockableChain
Summary

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 PR18037

This is a backport of Core PR18263

Test Plan

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable