mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-31 20:11:23 +00:00
Disable retargeting for regtest
This commit is contained in:
committed by
Andreas Schildbach
parent
1befde31fd
commit
25bd8d84c6
@@ -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