Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoin.cpp
Show All 17 Lines | |||||
#include <qt/networkstyle.h> | #include <qt/networkstyle.h> | ||||
#include <qt/optionsmodel.h> | #include <qt/optionsmodel.h> | ||||
#include <qt/platformstyle.h> | #include <qt/platformstyle.h> | ||||
#include <qt/splashscreen.h> | #include <qt/splashscreen.h> | ||||
#include <qt/utilitydialog.h> | #include <qt/utilitydialog.h> | ||||
#include <qt/winshutdownmonitor.h> | #include <qt/winshutdownmonitor.h> | ||||
#include <ui_interface.h> | #include <ui_interface.h> | ||||
#include <uint256.h> | #include <uint256.h> | ||||
#include <util/ref.h> | |||||
#include <util/system.h> | #include <util/system.h> | ||||
#include <util/threadnames.h> | #include <util/threadnames.h> | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
#include <qt/paymentserver.h> | #include <qt/paymentserver.h> | ||||
#include <qt/walletcontroller.h> | #include <qt/walletcontroller.h> | ||||
#include <qt/walletmodel.h> | #include <qt/walletmodel.h> | ||||
#endif // ENABLE_WALLET | #endif // ENABLE_WALLET | ||||
▲ Show 20 Lines • Show All 689 Lines • ▼ Show 20 Lines | #endif | ||||
Config &config = const_cast<Config &>(GetConfig()); | Config &config = const_cast<Config &>(GetConfig()); | ||||
if (gArgs.GetBoolArg("-splash", DEFAULT_SPLASHSCREEN) && | if (gArgs.GetBoolArg("-splash", DEFAULT_SPLASHSCREEN) && | ||||
!gArgs.GetBoolArg("-min", false)) { | !gArgs.GetBoolArg("-min", false)) { | ||||
app.createSplashScreen(networkStyle.data()); | app.createSplashScreen(networkStyle.data()); | ||||
} | } | ||||
RPCServer rpcServer; | RPCServer rpcServer; | ||||
HTTPRPCRequestProcessor httpRPCRequestProcessor(config, rpcServer); | util::Ref context{node}; | ||||
HTTPRPCRequestProcessor httpRPCRequestProcessor(config, rpcServer, context); | |||||
try { | try { | ||||
app.createWindow(&config, networkStyle.data()); | app.createWindow(&config, networkStyle.data()); | ||||
// Perform base initialization before spinning up | // Perform base initialization before spinning up | ||||
// initialization/shutdown thread. This is acceptable because this | // initialization/shutdown thread. This is acceptable because this | ||||
// function only contains steps that are quick to execute, so the GUI | // function only contains steps that are quick to execute, so the GUI | ||||
// thread won't be held up. | // thread won't be held up. | ||||
if (!app.baseInitialize(config)) { | if (!app.baseInitialize(config)) { | ||||
Show All 24 Lines |