aboutsummaryrefslogtreecommitdiff
path: root/src/rpcwallet.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-07-11 15:34:21 +0200
committerWladimir J. van der Laan <[email protected]>2014-07-11 15:34:27 +0200
commitd3165ed35adde59bdfbe72928b51a039202fa21e (patch)
tree9c4138c7e53bbd4607a13de9169dd2d0dabee6be /src/rpcwallet.cpp
parentMerge pull request #4507 (diff)
parent`getrawchangeaddress` should fail when keypool exhausted (diff)
downloaddiscoin-d3165ed35adde59bdfbe72928b51a039202fa21e.tar.xz
discoin-d3165ed35adde59bdfbe72928b51a039202fa21e.zip
Merge pull request #4347
6c37f7f `getrawchangeaddress` should fail when keypool exhausted (Wladimir J. van der Laan)
Diffstat (limited to 'src/rpcwallet.cpp')
-rw-r--r--src/rpcwallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp
index 1e4612906..e8c62fd37 100644
--- a/src/rpcwallet.cpp
+++ b/src/rpcwallet.cpp
@@ -201,7 +201,7 @@ Value getrawchangeaddress(const Array& params, bool fHelp)
CReserveKey reservekey(pwalletMain);
CPubKey vchPubKey;
if (!reservekey.GetReservedKey(vchPubKey))
- throw JSONRPCError(RPC_WALLET_ERROR, "Error: Unable to obtain key for change");
+ throw JSONRPCError(RPC_WALLET_KEYPOOL_RAN_OUT, "Error: Keypool ran out, please call keypoolrefill first");
reservekey.KeepKey();