mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 09:20:04 +01:00
Disable retargeting for regtest
This commit is contained in:
parent
17aa1bdaa8
commit
82ae8088de
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue