Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoind.cpp
Show All 38 Lines | |||||
* The software is a community-driven open source project, released under the | * The software is a community-driven open source project, released under the | ||||
* MIT license. | * MIT license. | ||||
* | * | ||||
* \section Navigation | * \section Navigation | ||||
* Use the buttons <code>Namespaces</code>, <code>Classes</code> or | * Use the buttons <code>Namespaces</code>, <code>Classes</code> or | ||||
* <code>Files</code> at the top of the page to start navigating the code. | * <code>Files</code> at the top of the page to start navigating the code. | ||||
*/ | */ | ||||
void WaitForShutdown() { | static void WaitForShutdown() { | ||||
while (!ShutdownRequested()) { | while (!ShutdownRequested()) { | ||||
MilliSleep(200); | MilliSleep(200); | ||||
} | } | ||||
Interrupt(); | Interrupt(); | ||||
} | } | ||||
////////////////////////////////////////////////////////////////////////////// | ////////////////////////////////////////////////////////////////////////////// | ||||
// | // | ||||
// Start | // Start | ||||
// | // | ||||
bool AppInit(int argc, char *argv[]) { | static bool AppInit(int argc, char *argv[]) { | ||||
// FIXME: Ideally, we'd like to build the config here, but that's currently | // FIXME: Ideally, we'd like to build the config here, but that's currently | ||||
// 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; | ||||
▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines |