diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-08-24 14:46:31 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-08-24 14:46:31 +0000 |
commit | c4da1a25c39f8412a2e9a5362b4752b9bde44ca5 (patch) | |
tree | f1c322696b1cb32b1819d185a223a767b5fe19ce /src/wallet | |
parent | Merge pull request #5827 (diff) | |
download | monero-c4da1a25c39f8412a2e9a5362b4752b9bde44ca5.tar.xz |
wallet2: fix unset_ring tx retrieval checks
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/wallet2.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 9782e4b1e..05a15bc57 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -7226,9 +7226,7 @@ bool wallet2::unset_ring(const crypto::hash &txid) bool ok = invoke_http_json("/gettransactions", req, res, rpc_timeout); m_daemon_rpc_mutex.unlock(); THROW_WALLET_EXCEPTION_IF(!ok, error::wallet_internal_error, "Failed to get transaction from daemon"); - if (res.txs.empty()) - return false; - THROW_WALLET_EXCEPTION_IF(res.txs.size(), error::wallet_internal_error, "Failed to get transaction from daemon"); + THROW_WALLET_EXCEPTION_IF(res.txs.size() != 1, error::wallet_internal_error, "Failed to get transaction from daemon"); cryptonote::transaction tx; crypto::hash tx_hash; |