]> Git Repo - VerusCoin.git/blobdiff - src/miner.cpp
Make bitcoin compile without wallet if "db_cxx.h" is not present
[VerusCoin.git] / src / miner.cpp
index 49f6ec6b957db05e23efe7a710531c473dae198d..21a9fa256b606c9ca6de8328ec4a057217c00f6b 100644 (file)
@@ -8,8 +8,9 @@
 #include "core.h"
 #include "main.h"
 #include "net.h"
+#ifdef ENABLE_WALLET
 #include "wallet.h"
-
+#endif
 //////////////////////////////////////////////////////////////////////////////
 //
 // BitcoinMiner
@@ -124,7 +125,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
     pblocktemplate->vTxSigOps.push_back(-1); // updated at end
 
     // Largest block you're willing to create:
-    unsigned int nBlockMaxSize = GetArg("-blockmaxsize", MAX_BLOCK_SIZE_GEN/2);
+    unsigned int nBlockMaxSize = GetArg("-blockmaxsize", DEFAULT_BLOCK_MAX_SIZE);
     // Limit to betweeen 1K and MAX_BLOCK_SIZE-1K for sanity:
     nBlockMaxSize = std::max((unsigned int)1000, std::min((unsigned int)(MAX_BLOCK_SIZE-1000), nBlockMaxSize));
 
This page took 0.02196 seconds and 4 git commands to generate.