Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/protocol.h
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | enum RPCErrorCode { | ||||
RPC_CLIENT_P2P_DISABLED = -31, | RPC_CLIENT_P2P_DISABLED = -31, | ||||
//! Wallet errors | //! Wallet errors | ||||
//!< Unspecified problem with wallet (key not found etc.) | //!< Unspecified problem with wallet (key not found etc.) | ||||
RPC_WALLET_ERROR = -4, | RPC_WALLET_ERROR = -4, | ||||
//!< Not enough funds in wallet or account | //!< Not enough funds in wallet or account | ||||
RPC_WALLET_INSUFFICIENT_FUNDS = -6, | RPC_WALLET_INSUFFICIENT_FUNDS = -6, | ||||
//!< Invalid account name | //!< Invalid account name | ||||
RPC_WALLET_INVALID_ACCOUNT_NAME = -11, | RPC_WALLET_INVALID_LABEL_NAME = -11, | ||||
//!< Keypool ran out, call keypoolrefill first | //!< Keypool ran out, call keypoolrefill first | ||||
RPC_WALLET_KEYPOOL_RAN_OUT = -12, | RPC_WALLET_KEYPOOL_RAN_OUT = -12, | ||||
//!< Enter the wallet passphrase with walletpassphrase first | //!< Enter the wallet passphrase with walletpassphrase first | ||||
RPC_WALLET_UNLOCK_NEEDED = -13, | RPC_WALLET_UNLOCK_NEEDED = -13, | ||||
//!< The wallet passphrase entered was incorrect | //!< The wallet passphrase entered was incorrect | ||||
RPC_WALLET_PASSPHRASE_INCORRECT = -14, | RPC_WALLET_PASSPHRASE_INCORRECT = -14, | ||||
//!< Command given in wrong wallet encryption state (encrypting an encrypted | //!< Command given in wrong wallet encryption state (encrypting an encrypted | ||||
//! wallet etc.) | //! wallet etc.) | ||||
RPC_WALLET_WRONG_ENC_STATE = -15, | RPC_WALLET_WRONG_ENC_STATE = -15, | ||||
//!< Failed to encrypt the wallet | //!< Failed to encrypt the wallet | ||||
RPC_WALLET_ENCRYPTION_FAILED = -16, | RPC_WALLET_ENCRYPTION_FAILED = -16, | ||||
//!< Wallet is already unlocked | //!< Wallet is already unlocked | ||||
RPC_WALLET_ALREADY_UNLOCKED = -17, | RPC_WALLET_ALREADY_UNLOCKED = -17, | ||||
//!< Invalid wallet specified | //!< Invalid wallet specified | ||||
RPC_WALLET_NOT_FOUND = -18, | RPC_WALLET_NOT_FOUND = -18, | ||||
//!< No wallet specified (error when there are multiple wallets loaded) | //!< No wallet specified (error when there are multiple wallets loaded) | ||||
RPC_WALLET_NOT_SPECIFIED = -19 | RPC_WALLET_NOT_SPECIFIED = -19, | ||||
//!< Backwards compatible aliases | |||||
RPC_WALLET_INVALID_ACCOUNT_NAME = RPC_WALLET_INVALID_LABEL_NAME | |||||
}; | }; | ||||
UniValue JSONRPCRequestObj(const std::string &strMethod, const UniValue ¶ms, | UniValue JSONRPCRequestObj(const std::string &strMethod, const UniValue ¶ms, | ||||
const UniValue &id); | const UniValue &id); | ||||
UniValue JSONRPCReplyObj(const UniValue &result, const UniValue &error, | UniValue JSONRPCReplyObj(const UniValue &result, const UniValue &error, | ||||
const UniValue &id); | const UniValue &id); | ||||
std::string JSONRPCReply(const UniValue &result, const UniValue &error, | std::string JSONRPCReply(const UniValue &result, const UniValue &error, | ||||
const UniValue &id); | const UniValue &id); | ||||
Show All 12 Lines |