Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoind.cpp
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | try { | ||||
// Set this early so that parameter interactions go to console | // Set this early so that parameter interactions go to console | ||||
InitLogging(); | InitLogging(); | ||||
InitParameterInteraction(); | InitParameterInteraction(); | ||||
if (!AppInitBasicSetup()) { | if (!AppInitBasicSetup()) { | ||||
// InitError will have been called with detailed error, which ends | // InitError will have been called with detailed error, which ends | ||||
// up on console | // up on console | ||||
return false; | return false; | ||||
} | } | ||||
if (!AppInitParameterInteraction(config, rpcServer)) { | if (!AppInitParameterInteraction(config)) { | ||||
// InitError will have been called with detailed error, which ends | // InitError will have been called with detailed error, which ends | ||||
// up on console | // up on console | ||||
return false; | return false; | ||||
} | } | ||||
if (!AppInitSanityChecks()) { | if (!AppInitSanityChecks()) { | ||||
// InitError will have been called with detailed error, which ends | // InitError will have been called with detailed error, which ends | ||||
// up on console | // up on console | ||||
return false; | return false; | ||||
Show All 24 Lines | |||||
#endif // HAVE_DECL_DAEMON | #endif // HAVE_DECL_DAEMON | ||||
} | } | ||||
// Lock data directory after daemonization | // Lock data directory after daemonization | ||||
if (!AppInitLockDataDirectory()) { | if (!AppInitLockDataDirectory()) { | ||||
// If locking the data directory failed, exit immediately | // If locking the data directory failed, exit immediately | ||||
return false; | return false; | ||||
} | } | ||||
fRet = AppInitMain(config, httpRPCRequestProcessor); | fRet = AppInitMain(config, rpcServer, httpRPCRequestProcessor); | ||||
} catch (const std::exception &e) { | } catch (const std::exception &e) { | ||||
PrintExceptionContinue(&e, "AppInit()"); | PrintExceptionContinue(&e, "AppInit()"); | ||||
} catch (...) { | } catch (...) { | ||||
PrintExceptionContinue(nullptr, "AppInit()"); | PrintExceptionContinue(nullptr, "AppInit()"); | ||||
} | } | ||||
if (!fRet) { | if (!fRet) { | ||||
Interrupt(); | Interrupt(); | ||||
Show All 16 Lines |