X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fmain.cpp;h=3037f77c0b7e2a87f2f88b7dc2e91fb48718825a;hp=0d2325c77f0c62297e59e741dc675956d0ba54e6;hb=18770118e846622f59a86f9937a33da0bb761775;hpb=95dd79118759f3e14a3d3e093111676e2efea8f9 diff --git a/src/main.cpp b/src/main.cpp index 0d2325c..3037f77 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -17,13 +17,12 @@ #include #include +#include "main.h" using namespace std; using namespace boost; -// -// Global state -// + CCriticalSection cs_setpwalletRegistered; set setpwalletRegistered; @@ -45,12 +44,7 @@ uint256 nPoWBase = uint256("0x00000000ffff00000000000000000000000000000000000000 CBigNum bnProofOfWorkLimitTestNet(~uint256(0) >> 16); -unsigned int nStakeMinAge = 60 * 60 * 24 * 30; // 30 days as zero time weight -unsigned int nStakeMaxAge = 60 * 60 * 24 * 90; // 90 days as full weight -unsigned int nStakeTargetSpacing = 10 * 60; // 10-minute stakes spacing -unsigned int nModifierInterval = 6 * 60 * 60; // time to elapse before new modifier is computed -int nCoinbaseMaturity = 500; CBlockIndex* pindexGenesisBlock = NULL; int nBestHeight = -1; @@ -3071,7 +3065,7 @@ bool LoadExternalBlockFile(FILE* fileIn) } catch (std::exception &e) { printf("%s() : Deserialize or I/O error caught during load\n", - __PRETTY_FUNCTION__); + BOOST_CURRENT_FUNCTION); } } printf("Loaded %i blocks from external file in %"PRI64d"ms\n", nLoaded, GetTimeMillis() - nStart);