mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-18 08:32:30 +01:00
Merge pull request #3553
a8db31c qt: allow `walletpassphrase` in debug console without -server (Wladimir J. van der Laan)
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
|
||||
#include "init.h"
|
||||
#include "main.h"
|
||||
#include "rpcserver.h"
|
||||
#include "ui_interface.h"
|
||||
#include "util.h"
|
||||
#include "wallet.h"
|
||||
@@ -226,6 +227,13 @@ void BitcoinCore::initialize()
|
||||
{
|
||||
LogPrintf("Running AppInit2 in thread\n");
|
||||
int rv = AppInit2(threadGroup);
|
||||
if(rv)
|
||||
{
|
||||
/* Start a dummy RPC thread if no RPC thread is active yet
|
||||
* to handle timeouts.
|
||||
*/
|
||||
StartDummyRPCThread();
|
||||
}
|
||||
emit initializeResult(rv);
|
||||
} catch (std::exception& e) {
|
||||
handleRunawayException(&e);
|
||||
|
||||
Reference in New Issue
Block a user