Deprecated -> Unsupported in RPC error
This commit is contained in:
parent
b6f100cf86
commit
7b3351ff0e
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue