X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Finit.cpp;h=a35efafe2c3c9ca8bdf43fd8af42b512bc604b10;hp=0f18b57dc1d1ab7bea9203fe83e9c83843b4fe2a;hb=af1b5b2c9471be320ee44b6ec030434e0626571d;hpb=c0f84a8b255f8c22fa8dae4da335830e71e8d0ca diff --git a/src/init.cpp b/src/init.cpp index 0f18b57..a35efaf 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -361,11 +361,6 @@ bool AppInit2() nNodeLifespan = GetArg("-addrlifespan", 7); fStakeUsePooledKeys = GetBoolArg("-stakepooledkeys", false); - if (GetBoolArg("-zerotest", false)) - { - Test_RunAllTests(); - } - CheckpointsMode = Checkpoints::STRICT; std::string strCpMode = GetArg("-cppolicy", "strict"); @@ -707,6 +702,7 @@ bool AppInit2() if (!LoadBlockIndex()) return InitError(_("Error loading blkindex.dat")); + // as LoadBlockIndex can take several minutes, it's possible the user // requested to kill bitcoin-qt during the last operation. If so, exit. // As the program has not fully started yet, Shutdown() is possibly overkill. @@ -746,6 +742,16 @@ bool AppInit2() return false; } + // ********************************************************* Testing Zerocoin + + + if (GetBoolArg("-zerotest", false)) + { + printf("\n=== ZeroCoin tests start ===\n"); + Test_RunAllTests(); + printf("=== ZeroCoin tests end ===\n\n"); + } + // ********************************************************* Step 8: load wallet uiInterface.InitMessage(_("Loading wallet..."));