diff options
| author | Russell Yanofsky <[email protected]> | 2020-07-06 10:36:15 -0400 |
|---|---|---|
| committer | Russell Yanofsky <[email protected]> | 2020-08-26 05:52:31 -0400 |
| commit | 519cae8fd6e44aef3470415d7c5e12acb0acd9f4 (patch) | |
| tree | 8c76ab65ae45db775f989f4269fbba7ee2e0fad4 /src/qt/splashscreen.cpp | |
| parent | gui: Replace interface::Node references with pointers (diff) | |
| download | discoin-519cae8fd6e44aef3470415d7c5e12acb0acd9f4.tar.xz discoin-519cae8fd6e44aef3470415d7c5e12acb0acd9f4.zip | |
gui: Delay interfaces::Node initialization
This is needed to allow bitcoin-gui to connect to existing node process with
-ipcconnect instead of spawning a new process. It's possible to spawn a new
bitcoin-node process without knowing the current data dir or network, but
connecting to an existing bitcoin-node requires knowing the datadir and network
first.
Diffstat (limited to 'src/qt/splashscreen.cpp')
| -rw-r--r-- | src/qt/splashscreen.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/splashscreen.cpp b/src/qt/splashscreen.cpp index 50fe8eb28..bd63d6e7f 100644 --- a/src/qt/splashscreen.cpp +++ b/src/qt/splashscreen.cpp @@ -139,10 +139,12 @@ void SplashScreen::setNode(interfaces::Node& node) assert(!m_node); m_node = &node; subscribeToCoreSignals(); + if (m_shutdown) m_node->startShutdown(); } void SplashScreen::shutdown() { + m_shutdown = true; if (m_node) m_node->startShutdown(); } |