3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-12 02:05:53 +00:00

Make unit test genesis block pass verification

This commit is contained in:
Miron Cuperman 2011-12-16 14:01:56 -08:00 committed by Miron Cuperman
parent b7b1c039dc
commit cf824dfbce

View File

@ -158,6 +158,7 @@ public class NetworkParameters implements Serializable {
NetworkParameters n = new NetworkParameters();
n = createTestNet(n);
n.proofOfWorkLimit = new BigInteger("00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", 16);
n.genesisBlock.setNonce(2); // Make this pass the difficulty test
n.genesisBlock.setDifficultyTarget(Block.EASIEST_DIFFICULTY_TARGET);
n.interval = 10;
n.targetTimespan = 200000000; // 6 years. Just a very big number.