Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoind.cpp
Show All 15 Lines | |||||
#include <httpserver.h> | #include <httpserver.h> | ||||
#include <init.h> | #include <init.h> | ||||
#include <interfaces/chain.h> | #include <interfaces/chain.h> | ||||
#include <noui.h> | #include <noui.h> | ||||
#include <rpc/server.h> | #include <rpc/server.h> | ||||
#include <shutdown.h> | #include <shutdown.h> | ||||
#include <util/strencodings.h> | #include <util/strencodings.h> | ||||
#include <util/system.h> | #include <util/system.h> | ||||
#include <util/threadnames.h> | |||||
#include <walletinitinterface.h> | #include <walletinitinterface.h> | ||||
#include <cstdio> | #include <cstdio> | ||||
const std::function<std::string(const char *)> G_TRANSLATION_FUN = nullptr; | const std::function<std::string(const char *)> G_TRANSLATION_FUN = nullptr; | ||||
/* Introduction text for doxygen: */ | /* Introduction text for doxygen: */ | ||||
Show All 35 Lines | static bool AppInit(int argc, char *argv[]) { | ||||
RPCServer rpcServer; | RPCServer rpcServer; | ||||
HTTPRPCRequestProcessor httpRPCRequestProcessor(config, rpcServer); | HTTPRPCRequestProcessor httpRPCRequestProcessor(config, rpcServer); | ||||
InitInterfaces interfaces; | InitInterfaces interfaces; | ||||
interfaces.chain = interfaces::MakeChain(); | interfaces.chain = interfaces::MakeChain(); | ||||
bool fRet = false; | bool fRet = false; | ||||
util::ThreadRename("init"); | |||||
// | // | ||||
// 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() | ||||
SetupServerArgs(); | SetupServerArgs(); | ||||
std::string error; | std::string error; | ||||
if (!gArgs.ParseParameters(argc, argv, error)) { | if (!gArgs.ParseParameters(argc, argv, error)) { | ||||
▲ Show 20 Lines • Show All 148 Lines • Show Last 20 Lines |