From be1c01298ab4e2d850ac18537784d1c11c777c60 Mon Sep 17 00:00:00 2001 From: stoffu Date: Mon, 20 Nov 2017 18:10:58 +0900 Subject: fix for tx proof: use exception instead of error_str when signature gen failed --- src/wallet/wallet_rpc_server.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/wallet/wallet_rpc_server.cpp') 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) { -- cgit v1.2.3