aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server.cpp
diff options
context:
space:
mode:
authorMichał Sałaban <michal@salaban.info>2018-10-18 23:14:06 +0200
committerMichał Sałaban <michal@salaban.info>2018-10-18 23:14:06 +0200
commitade369f96fd0decbce1489f12d50d741f7c1b5a2 (patch)
tree3358513e2daae75e1281367244cc8bdfd1bd79d2 /src/wallet/wallet_rpc_server.cpp
parentMerge pull request #4610 (diff)
downloadmonero-ade369f96fd0decbce1489f12d50d741f7c1b5a2.tar.xz
Add RPC error code for non-deterministic wallet
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet_rpc_server.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index 1b63d65b6..8baa2251e 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -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;
}