aboutsummaryrefslogtreecommitdiff
path: root/src/rpcprotocol.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/rpcprotocol.h
parent08ede8ef5edd8bfe6b80d0900bd9bd65b2d45cbf (diff)
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/rpcprotocol.h')
-rw-r--r--src/rpcprotocol.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/rpcprotocol.h b/src/rpcprotocol.h
index 6bf371e759..d3ed48525f 100644
--- a/src/rpcprotocol.h
+++ b/src/rpcprotocol.h
@@ -49,7 +49,6 @@ enum RPCErrorCode
RPC_INVALID_PARAMETER = -8, // Invalid, missing or duplicate parameter
RPC_DATABASE_ERROR = -20, // Database error
RPC_DESERIALIZATION_ERROR = -22, // Error parsing or validating structure in raw format
- RPC_SERVER_NOT_STARTED = -18, // RPC server was not started (StartRPCThreads() not called)
// P2P client errors
RPC_CLIENT_NOT_CONNECTED = -9, // Bitcoin is not connected