From: CryptoManiac Date: Mon, 24 Nov 2014 12:28:06 +0000 (+0300) Subject: Restore testnet settings X-Git-Tag: nvc-v0.5.0~29 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=e1a62ae0588db7071d18fae11f5f0bb50f9bbeaa Restore testnet settings --- diff --git a/src/main.cpp b/src/main.cpp index 4374774..1271c1a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2796,6 +2796,20 @@ FILE* AppendBlockFile(unsigned int& nFileRet) bool LoadBlockIndex(bool fAllowNew) { + if (fTestNet) + { + pchMessageStart[0] = 0xcd; + pchMessageStart[1] = 0xf2; + pchMessageStart[2] = 0xc0; + pchMessageStart[3] = 0xef; + + bnProofOfWorkLimit = bnProofOfWorkLimitTestNet; // 16 bits PoW target limit for testnet + nStakeMinAge = 2 * 60 * 60; // test net min age is 2 hours + nModifierInterval = 20 * 60; // test modifier interval is 20 minutes + nCoinbaseMaturity = 10; // test maturity is 10 blocks + nStakeTargetSpacing = 5 * 60; // test block spacing is 5 minutes + } + // // Load block index //