Merge pull request #4653

ade369f9 Add RPC error code for non-deterministic wallet (Michał Sałaban)
This commit is contained in:
Riccardo Spagni 2018-11-01 22:33:20 +02:00
commit 3ceeac50da
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
2 changed files with 2 additions and 0 deletions

View File

@ -1744,6 +1744,7 @@ namespace tools
epee::wipeable_string seed; epee::wipeable_string seed;
if (!m_wallet->get_seed(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."; er.message = "The wallet is non-deterministic. Cannot display seed.";
return false; return false;
} }

View File

@ -73,3 +73,4 @@
#define WALLET_RPC_ERROR_CODE_BAD_SIGNED_TX_DATA -40 #define WALLET_RPC_ERROR_CODE_BAD_SIGNED_TX_DATA -40
#define WALLET_RPC_ERROR_CODE_SIGNED_SUBMISSION -41 #define WALLET_RPC_ERROR_CODE_SIGNED_SUBMISSION -41
#define WALLET_RPC_ERROR_CODE_SIGN_UNSIGNED -42 #define WALLET_RPC_ERROR_CODE_SIGN_UNSIGNED -42
#define WALLET_RPC_ERROR_CODE_NON_DETERMINISTIC -43