mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 11:23:26 +01:00
Add RPC error code for non-deterministic wallet
This commit is contained in:
parent
5c85da5a73
commit
ade369f96f
@ -1577,6 +1577,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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user