Deprecated -> Unsupported in RPC error

This commit is contained in:
Jack Grigg 2016-10-10 10:27:12 -05:00
parent b6f100cf86
commit 7b3351ff0e
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;
}