diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-09-08 20:00:55 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-09-08 20:00:55 -0500 |
commit | 19ef2e99ad696d60d334f3ddf4fc11d4f77d1051 (patch) | |
tree | c598498de1a4fc867d2f424c99e44fc7b22c1363 | |
parent | Merge pull request #5849 (diff) | |
parent | wallet2: fix unset_ring tx retrieval checks (diff) | |
download | monero-19ef2e99ad696d60d334f3ddf4fc11d4f77d1051.tar.xz |
Merge pull request #5850
c4da1a2 wallet2: fix unset_ring tx retrieval checks (moneromooo-monero)
-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 cdb167ecb..0d133e3b9 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -7258,9 +7258,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; |