mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-19 05:33:44 +01:00
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:
parent
42bb5b386e
commit
9fa36d495f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user