mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-02 21:47:18 +00:00
Disable retargeting for regtest
This commit is contained in:
committed by
Andreas Schildbach
parent
17aa1bdaa8
commit
82ae8088de
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user