mirror of
https://github.com/monero-project/monero.git
synced 2025-08-06 01:54:20 -04:00
fix for tx proof: use exception instead of error_str when signature gen failed
This commit is contained in:
parent
49ce59462a
commit
be1c01298a
7 changed files with 14 additions and 36 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue