diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-11-01 22:33:20 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-11-01 22:33:20 +0200 |
commit | 3ceeac50da5c900e00ee99c88800da415315b41b (patch) | |
tree | 05b46eb302b504a1c3c83ed92e69c75691f3539f /src/wallet | |
parent | Merge pull request #4648 (diff) | |
parent | Add RPC error code for non-deterministic wallet (diff) | |
download | monero-3ceeac50da5c900e00ee99c88800da415315b41b.tar.xz |
Merge pull request #4653
ade369f9 Add RPC error code for non-deterministic wallet (Michał Sałaban)
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 1 | ||||
-rw-r--r-- | src/wallet/wallet_rpc_server_error_codes.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index 6dbea2e14..5e6100dfd 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -1744,6 +1744,7 @@ namespace tools epee::wipeable_string seed; if (!m_wallet->get_seed(seed)) { + er.code = WALLET_RPC_ERROR_CODE_NON_DETERMINISTIC; er.message = "The wallet is non-deterministic. Cannot display seed."; return false; } diff --git a/src/wallet/wallet_rpc_server_error_codes.h b/src/wallet/wallet_rpc_server_error_codes.h index f127ae240..9b3a2847d 100644 --- a/src/wallet/wallet_rpc_server_error_codes.h +++ b/src/wallet/wallet_rpc_server_error_codes.h @@ -73,3 +73,4 @@ #define WALLET_RPC_ERROR_CODE_BAD_SIGNED_TX_DATA -40 #define WALLET_RPC_ERROR_CODE_SIGNED_SUBMISSION -41 #define WALLET_RPC_ERROR_CODE_SIGN_UNSIGNED -42 +#define WALLET_RPC_ERROR_CODE_NON_DETERMINISTIC -43 |