diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-01-17 16:32:35 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-01-17 16:55:20 +0100 |
commit | a8db31c83d6a43e07f741f7f61b1bf0df87621c7 (patch) | |
tree | 696736b13dd4e6bce111c92c93037dd3d747135d /src/rpcwallet.cpp | |
parent | 08ede8ef5edd8bfe6b80d0900bd9bd65b2d45cbf (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/rpcwallet.cpp')
-rw-r--r-- | src/rpcwallet.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index 8ad5c9c51d..68f5fe525a 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -1562,8 +1562,6 @@ Value walletpassphrase(const Array& params, bool fHelp) if (fHelp) return true; - if (!fServer) - throw JSONRPCError(RPC_SERVER_NOT_STARTED, "Error: RPC server was not started, use server=1 to change this."); if (!pwalletMain->IsCrypted()) throw JSONRPCError(RPC_WALLET_WRONG_ENC_STATE, "Error: running with an unencrypted wallet, but walletpassphrase was called."); |