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:
parent
b7b1c039dc
commit
cf824dfbce
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user