Create MineBlocksOnDemand chain parameter

Same goals as #3819.