Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show All 36 Lines | |||||
#include <torcontrol.h> | #include <torcontrol.h> | ||||
#include <txdb.h> | #include <txdb.h> | ||||
#include <txmempool.h> | #include <txmempool.h> | ||||
#include <ui_interface.h> | #include <ui_interface.h> | ||||
#include <util.h> | #include <util.h> | ||||
#include <utilmoneystr.h> | #include <utilmoneystr.h> | ||||
#include <validation.h> | #include <validation.h> | ||||
#include <validationinterface.h> | #include <validationinterface.h> | ||||
#ifdef ENABLE_WALLET | |||||
#include <wallet/rpcdump.h> | |||||
#endif | |||||
#include <walletinitinterface.h> | #include <walletinitinterface.h> | ||||
#include <warnings.h> | #include <warnings.h> | ||||
#include <boost/algorithm/string/classification.hpp> | #include <boost/algorithm/string/classification.hpp> | ||||
#include <boost/algorithm/string/replace.hpp> | #include <boost/algorithm/string/replace.hpp> | ||||
#include <boost/algorithm/string/split.hpp> | #include <boost/algorithm/string/split.hpp> | ||||
#include <boost/bind.hpp> | #include <boost/bind.hpp> | ||||
#include <boost/interprocess/sync/file_lock.hpp> | #include <boost/interprocess/sync/file_lock.hpp> | ||||
▲ Show 20 Lines • Show All 1,542 Lines • ▼ Show 20 Lines | if (nPruneArg == 1) { | ||||
LogPrintf("Prune configured to target %uMiB on disk for block and undo " | LogPrintf("Prune configured to target %uMiB on disk for block and undo " | ||||
"files.\n", | "files.\n", | ||||
nPruneTarget / 1024 / 1024); | nPruneTarget / 1024 / 1024); | ||||
fPruneMode = true; | fPruneMode = true; | ||||
} | } | ||||
RegisterAllRPCCommands(config, rpcServer, tableRPC); | RegisterAllRPCCommands(config, rpcServer, tableRPC); | ||||
g_wallet_init_interface->RegisterRPC(tableRPC); | g_wallet_init_interface->RegisterRPC(tableRPC); | ||||
#ifdef ENABLE_WALLET | |||||
RegisterDumpRPCCommands(tableRPC); | |||||
#endif | |||||
nConnectTimeout = gArgs.GetArg("-timeout", DEFAULT_CONNECT_TIMEOUT); | nConnectTimeout = gArgs.GetArg("-timeout", DEFAULT_CONNECT_TIMEOUT); | ||||
if (nConnectTimeout <= 0) { | if (nConnectTimeout <= 0) { | ||||
nConnectTimeout = DEFAULT_CONNECT_TIMEOUT; | nConnectTimeout = DEFAULT_CONNECT_TIMEOUT; | ||||
} | } | ||||
// Obtain the amount to charge excess UTXO | // Obtain the amount to charge excess UTXO | ||||
if (gArgs.IsArgSet("-excessutxocharge")) { | if (gArgs.IsArgSet("-excessutxocharge")) { | ||||
▲ Show 20 Lines • Show All 775 Lines • Show Last 20 Lines |