aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/protocol.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@protonmail.com>2021-01-19 15:15:02 +0100
committerWladimir J. van der Laan <laanwj@protonmail.com>2021-01-25 07:55:35 +0100
commita6739cc86827759c543bf81f5532ec46e40549c3 (patch)
tree6b93a270848a33ce7ddfac0186830225b646a74f /src/rpc/protocol.h
parent43f3ada27b835e6b198f9a669e4955d06f5c4d08 (diff)
downloadbitcoin-a6739cc86827759c543bf81f5532ec46e40549c3.tar.xz
rpc: Add specific error code for "wallet already loaded"
Diffstat (limited to 'src/rpc/protocol.h')
-rw-r--r--src/rpc/protocol.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/protocol.h b/src/rpc/protocol.h
index c8ceb2c186..fc00a1efad 100644
--- a/src/rpc/protocol.h
+++ b/src/rpc/protocol.h
@@ -79,6 +79,7 @@ enum RPCErrorCode
RPC_WALLET_ALREADY_UNLOCKED = -17, //!< Wallet is already unlocked
RPC_WALLET_NOT_FOUND = -18, //!< Invalid wallet specified
RPC_WALLET_NOT_SPECIFIED = -19, //!< No wallet specified (error when there are multiple wallets loaded)
+ RPC_WALLET_ALREADY_LOADED = -35, //!< This same wallet is already loaded
//! Backwards compatible aliases
RPC_WALLET_INVALID_ACCOUNT_NAME = RPC_WALLET_INVALID_LABEL_NAME,