Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/protocol.h
| Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | enum RPCErrorCode { | ||||
| 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 | |||||
| RPC_WALLET_NOT_FOUND = -18, | |||||
| //!< No wallet specified (error when there are multiple wallets loaded) | |||||
| RPC_WALLET_NOT_SPECIFIED = -19 | |||||
| }; | }; | ||||
| 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 | |||||