Browse Source

Bugfix: Describe dblogsize option correctly (it refers to the wallet database, not memory pool)

0.13
Luke Dashjr 9 years ago
parent
commit
420a82f1ae
  1. 2
      src/init.cpp
  2. 2
      src/wallet/db.cpp
  3. 2
      src/wallet/db.h

2
src/init.cpp

@ -404,7 +404,7 @@ std::string HelpMessage(HelpMessageMode mode) @@ -404,7 +404,7 @@ std::string HelpMessage(HelpMessageMode mode)
if (showDebug)
{
strUsage += HelpMessageOpt("-checkpoints", strprintf("Disable expensive verification for known chain history (default: %u)", 1));
strUsage += HelpMessageOpt("-dblogsize=<n>", strprintf("Flush database activity from memory pool to disk log every <n> megabytes (default: %u)", 100));
strUsage += HelpMessageOpt("-dblogsize=<n>", strprintf("Flush wallet database activity from memory to disk log every <n> megabytes (default: %u)", DEFAULT_WALLET_DBLOGSIZE));
strUsage += HelpMessageOpt("-disablesafemode", strprintf("Disable safemode, override a real safe mode event (default: %u)", 0));
strUsage += HelpMessageOpt("-testsafemode", strprintf("Force safe mode (default: %u)", 0));
strUsage += HelpMessageOpt("-dropmessagestest=<n>", "Randomly drop 1 of every <n> network messages");

2
src/wallet/db.cpp

@ -293,7 +293,7 @@ void CDB::Flush() @@ -293,7 +293,7 @@ void CDB::Flush()
if (fReadOnly)
nMinutes = 1;
bitdb.dbenv->txn_checkpoint(nMinutes ? GetArg("-dblogsize", 100) * 1024 : 0, nMinutes, 0);
bitdb.dbenv->txn_checkpoint(nMinutes ? GetArg("-dblogsize", DEFAULT_WALLET_DBLOGSIZE) * 1024 : 0, nMinutes, 0);
}
void CDB::Close()

2
src/wallet/db.h

@ -20,6 +20,8 @@ @@ -20,6 +20,8 @@
#include <db_cxx.h>
static const unsigned int DEFAULT_WALLET_DBLOGSIZE = 100;
extern unsigned int nWalletDBUpdated;
class CDBEnv

Loading…
Cancel
Save