Disable retargeting for regtest

This commit is contained in:
Oscar Guindzberg 2016-06-09 16:50:04 -03:00 committed by Andreas Schildbach
parent 17aa1bdaa8
commit 82ae8088de

View file

@ -30,7 +30,9 @@ public class RegTestParams extends TestNet2Params {
public RegTestParams() {
super();
interval = 10000;
// Difficulty adjustments are disabled for regtest.
// By setting the block interval for difficulty adjustments to Integer.MAX_VALUE we make sure difficulty never changes.
interval = Integer.MAX_VALUE;
maxTarget = MAX_TARGET;
subsidyDecreaseBlockCount = 150;
port = 18444;