Skip to content

Commit

Permalink
Merge pull request #400 from rsksmart/set_minimum_diff_for_testnet
Browse files Browse the repository at this point in the history
minimum diff for testnet & devnet
  • Loading branch information
martinmedina authored Jan 5, 2018
2 parents 987c3e4 + 189ef3b commit 6e45eaf
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import co.rsk.config.BridgeTestNetConstants;
import org.ethereum.config.Constants;
import org.ethereum.core.BlockHeader;
import org.spongycastle.util.encoders.Hex;

import java.math.BigInteger;

Expand All @@ -35,13 +34,18 @@ public static class TestNetConstants extends GenesisConstants {

private static final BigInteger DIFFICULTY_BOUND_DIVISOR = BigInteger.valueOf(50);
private static final byte CHAIN_ID = 31;

private BigInteger minimumDifficulty = BigInteger.valueOf(131072);

@Override
public BridgeConstants getBridgeConstants() {
return BridgeTestNetConstants.getInstance();
}

@Override
public BigInteger getMinimumDifficulty() {
return minimumDifficulty;
}

@Override
public int getDurationLimit() {
return 14;
Expand Down

0 comments on commit 6e45eaf

Please sign in to comment.