aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-11-01 22:33:20 +0200
committerRiccardo Spagni <ric@spagni.net>2018-11-01 22:33:20 +0200
commit3ceeac50da5c900e00ee99c88800da415315b41b (patch)
tree05b46eb302b504a1c3c83ed92e69c75691f3539f /src/wallet/wallet_rpc_server.cpp
parentMerge pull request #4648 (diff)
parentAdd RPC error code for non-deterministic wallet (diff)
downloadmonero-3ceeac50da5c900e00ee99c88800da415315b41b.tar.xz
Merge pull request #4653
ade369f9 Add RPC error code for non-deterministic wallet (Michał Sałaban)
Diffstat (limited to 'src/wallet/wallet_rpc_server.cpp')
-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 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;
}