aboutsummaryrefslogtreecommitdiff
path: root/src/rpcserver.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-01-17 16:32:35 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-01-17 16:55:20 +0100
commita8db31c83d6a43e07f741f7f61b1bf0df87621c7 (patch)
tree696736b13dd4e6bce111c92c93037dd3d747135d /src/rpcserver.h
parent08ede8ef5edd8bfe6b80d0900bd9bd65b2d45cbf (diff)
downloadbitcoin-a8db31c83d6a43e07f741f7f61b1bf0df87621c7.tar.xz
qt: allow `walletpassphrase` in debug console without -server
Currently it is only possible to use `walletpassphrase` to unlock the wallet when bitcoin is started in server mode. Almost everything that manipulates the wallet in the RPC console needs the wallet to be unlocked and is thus unusable without -server. This is pretty unintuitive to me, and I'm sure it's even more confusing to users. Solve this with a very minimal change: by making the GUI start a dummy RPC thread just to handle timeouts.
Diffstat (limited to 'src/rpcserver.h')
-rw-r--r--src/rpcserver.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rpcserver.h b/src/rpcserver.h
index 9087be9e88..9008c32810 100644
--- a/src/rpcserver.h
+++ b/src/rpcserver.h
@@ -20,7 +20,14 @@
class CBlockIndex;
+/* Start RPC threads */
void StartRPCThreads();
+/* Alternative to StartRPCThreads for the GUI, when no server is
+ * used. The RPC thread in this case is only used to handle timeouts.
+ * If real RPC threads have already been started this is a no-op.
+ */
+void StartDummyRPCThread();
+/* Stop RPC threads */
void StopRPCThreads();
/*