Merge pull request #4653
ade369f9 Add RPC error code for non-deterministic wallet (Michał Sałaban)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user