RegTestParams: MAX_TARGET to be created out of 64 hex digits

This commit is contained in:
Gitju
2017-07-06 17:29:32 +02:00
committed by Andreas Schildbach
parent 7f34eefca4
commit 4b95a8bdfa

View File

@@ -26,7 +26,7 @@ import static com.google.common.base.Preconditions.checkState;
* Network parameters for the regression test mode of bitcoind in which all blocks are trivially solvable.
*/
public class RegTestParams extends TestNet2Params {
private static final BigInteger MAX_TARGET = new BigInteger("7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", 16);
private static final BigInteger MAX_TARGET = new BigInteger("7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", 16);
public RegTestParams() {
super();