From 7b3351ff0edac9cc585ad4e80e7bae25968b2a14 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Mon, 10 Oct 2016 10:27:12 -0500 Subject: [PATCH] Deprecated -> Unsupported in RPC error --- src/rpcprotocol.h | 2 +- src/wallet/rpcwallet.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpcprotocol.h b/src/rpcprotocol.h index 473b8d114..aac3502a6 100644 --- a/src/rpcprotocol.h +++ b/src/rpcprotocol.h @@ -69,7 +69,7 @@ enum RPCErrorCode //! Wallet errors RPC_WALLET_ERROR = -4, //! Unspecified problem with wallet (key not found etc.) RPC_WALLET_INSUFFICIENT_FUNDS = -6, //! Not enough funds in wallet or account - RPC_WALLET_ACCOUNTS_DEPRECATED = -11, //! Accounts are deprecated + RPC_WALLET_ACCOUNTS_UNSUPPORTED = -11, //! Accounts are unsupported RPC_WALLET_KEYPOOL_RAN_OUT = -12, //! Keypool ran out, call keypoolrefill first RPC_WALLET_UNLOCK_NEEDED = -13, //! Enter the wallet passphrase with walletpassphrase first RPC_WALLET_PASSPHRASE_INCORRECT = -14, //! The wallet passphrase entered was incorrect diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 1239edd23..22e1aa02a 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -98,7 +98,7 @@ string AccountFromValue(const Value& value) { string strAccount = value.get_str(); if (strAccount != "") - throw JSONRPCError(RPC_WALLET_ACCOUNTS_DEPRECATED, "Accounts are deprecated"); + throw JSONRPCError(RPC_WALLET_ACCOUNTS_UNSUPPORTED, "Accounts are unsupported"); return strAccount; }