aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server.cpp
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2017-11-20 18:10:58 +0900
committerstoffu <stoffu@protonmail.ch>2017-11-21 16:48:22 +0900
commitbe1c01298ab4e2d850ac18537784d1c11c777c60 (patch)
tree8babed79a324b782b46db831292217e01213bc44 /src/wallet/wallet_rpc_server.cpp
parentMerge pull request #2783 (diff)
downloadmonero-be1c01298ab4e2d850ac18537784d1c11c777c60.tar.xz
fix for tx proof: use exception instead of error_str when signature gen failed
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet_rpc_server.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index cf404543c..101cfe50f 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -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)
{