fix for tx proof: use exception instead of error_str when signature gen failed

This commit is contained in:
stoffu 2017-11-20 18:10:58 +09:00
parent 49ce59462a
commit be1c01298a
No known key found for this signature in database
GPG key ID: 41DAB8343A9EC012
7 changed files with 14 additions and 36 deletions

View file

@ -1507,12 +1507,7 @@ namespace tools
try
{
res.signature = m_wallet->get_tx_proof(txid, info.address, info.is_subaddress, req.message, er.message);
if (res.signature.empty())
{
er.code = WALLET_RPC_ERROR_CODE_UNKNOWN_ERROR;
return false;
}
res.signature = m_wallet->get_tx_proof(txid, info.address, info.is_subaddress, req.message);
}
catch (const std::exception &e)
{