UnitTestParams: Set UnitTest maxTarget to EASIEST_DIFFICULTY_TARGET

The tests are currently using a custom value for maxTarget
that can’t be generated via CompactBits format.

This commit changes the string constant to match what would be
generated by using Utils.decodeCompactBits(EASIEST_DIFFICULTY_TARGET).
This commit is contained in:
Sean Gilligan 2021-09-06 15:59:45 -07:00 committed by Andreas Schildbach
parent 42bb5b386e
commit 9fa36d495f

View File

@ -36,7 +36,7 @@ public class UnitTestParams extends AbstractBitcoinNetParams {
id = ID_UNITTESTNET;
targetTimespan = 200000000; // 6 years. Just a very big number.
maxTarget = new BigInteger("00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", 16);
maxTarget = new BigInteger("007fffff0000000000000000000000000000000000000000000000000000000000", 16); // equivalent to EASIEST_DIFFICULTY_TARGET
interval = 10;
subsidyDecreaseBlockCount = 100;