Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoind.cpp
Show All 14 Lines | |||||
#include "httprpc.h" | #include "httprpc.h" | ||||
#include "httpserver.h" | #include "httpserver.h" | ||||
#include "init.h" | #include "init.h" | ||||
#include "noui.h" | #include "noui.h" | ||||
#include "rpc/server.h" | #include "rpc/server.h" | ||||
#include "scheduler.h" | #include "scheduler.h" | ||||
#include "util.h" | #include "util.h" | ||||
#include "utilstrencodings.h" | #include "utilstrencodings.h" | ||||
#if ENABLE_WALLET | |||||
#include "wallet/init.h" | |||||
#endif | |||||
#include "walletinitinterface.h" | |||||
#include <boost/thread.hpp> | #include <boost/thread.hpp> | ||||
#include <cstdio> | #include <cstdio> | ||||
/* Introduction text for doxygen: */ | /* Introduction text for doxygen: */ | ||||
/*! \mainpage Developer documentation | /*! \mainpage Developer documentation | ||||
Show All 37 Lines | bool AppInit(int argc, char *argv[]) { | ||||
// not possible as the whole application has too many global state. However, | // not possible as the whole application has too many global state. However, | ||||
// this is a first step. | // this is a first step. | ||||
auto &config = const_cast<Config &>(GetConfig()); | auto &config = const_cast<Config &>(GetConfig()); | ||||
RPCServer rpcServer; | RPCServer rpcServer; | ||||
HTTPRPCRequestProcessor httpRPCRequestProcessor(config, rpcServer); | HTTPRPCRequestProcessor httpRPCRequestProcessor(config, rpcServer); | ||||
bool fRet = false; | bool fRet = false; | ||||
#if ENABLE_WALLET | |||||
g_wallet_init_interface.reset(new WalletInit); | |||||
#else | |||||
g_wallet_init_interface.reset(new DummyWalletInit); | |||||
#endif | |||||
// | // | ||||
// Parameters | // Parameters | ||||
// | // | ||||
// If Qt is used, parameters/bitcoin.conf are parsed in qt/bitcoin.cpp's | // If Qt is used, parameters/bitcoin.conf are parsed in qt/bitcoin.cpp's | ||||
// main() | // main() | ||||
gArgs.ParseParameters(argc, argv); | gArgs.ParseParameters(argc, argv); | ||||
// Process help and version before taking care about datadir | // Process help and version before taking care about datadir | ||||
▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines |