X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Finit.cpp;h=5b1ee2a894f30c104d97db1f7613146b9256430c;hb=87ce74e59b88c2a36aeeb2d0ddc01c8cc6e6b77b;hp=f549c1a04974b9f5424d197edaae947a61ce7684;hpb=5098ea454db9132aa0f576921ca9d1a69429d146;p=novacoin.git diff --git a/src/init.cpp b/src/init.cpp index f549c1a..5b1ee2a 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -2,16 +2,19 @@ // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. +#include "init.h" +#include "wallet.h" +#include "base58.h" #include "txdb-leveldb.h" #include "walletdb.h" #include "bitcoinrpc.h" #include "net.h" -#include "init.h" +#include "random.h" #include "util.h" #include "ipcollector.h" #include "interface.h" #include "checkpoints.h" -#include + #include #include #include @@ -25,7 +28,7 @@ using namespace std; -using namespace boost; + CWallet* pwalletMain; CClientUIInterface uiInterface; @@ -263,14 +266,13 @@ std::string HelpMessage() " -bantime= " + _("Number of seconds to keep misbehaving peers from reconnecting (default: 86400)") + "\n" + " -maxreceivebuffer= " + _("Maximum per-connection receive buffer, *1000 bytes (default: 5000)") + "\n" + " -maxsendbuffer= " + _("Maximum per-connection send buffer, *1000 bytes (default: 1000)") + "\n" + - " -detachdb " + _("Detach block and address databases. Increases shutdown time (default: 0)") + "\n" + #ifdef DB_LOG_IN_MEMORY " -memorylog " + _("Use in-memory logging for block index database (default: 1)") + "\n" + #endif " -paytxfee= " + _("Fee per KB to add to transactions you send") + "\n" + - " -mininput= " + str(boost::format(_("When creating transactions, ignore inputs with value less than this (default: %s)")) % FormatMoney(MIN_TXOUT_AMOUNT)) + "\n" + + " -mininput= " + (_("When creating transactions, ignore inputs with value less than this (default: ") + FormatMoney(MIN_TXOUT_AMOUNT) + ")") + "\n" + #ifdef QT_GUI " -server " + _("Accept command line and JSON-RPC commands") + "\n" + #endif @@ -454,8 +456,6 @@ bool AppInit2() else fDebugNet = GetBoolArg("-debugnet"); - bitdb.SetDetach(GetBoolArg("-detachdb", false)); - #if !defined(WIN32) && !defined(QT_GUI) fDaemon = GetBoolArg("-daemon"); #else @@ -963,6 +963,7 @@ bool AppInit2() nStart = GetTimeMillis(); { + CAddrDB::SetMessageStart(pchMessageStart); CAddrDB adb; if (!adb.Read(addrman)) printf("Invalid or missing peers.dat; recreating\n");