mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-29 18:53:14 +00:00
wallet2: fix unset_ring tx retrieval checks
This commit is contained in:
parent
cdfa2e58df
commit
c4da1a25c3
1 changed files with 1 additions and 3 deletions
|
@ -7226,9 +7226,7 @@ bool wallet2::unset_ring(const crypto::hash &txid)
|
||||||
bool ok = invoke_http_json("/gettransactions", req, res, rpc_timeout);
|
bool ok = invoke_http_json("/gettransactions", req, res, rpc_timeout);
|
||||||
m_daemon_rpc_mutex.unlock();
|
m_daemon_rpc_mutex.unlock();
|
||||||
THROW_WALLET_EXCEPTION_IF(!ok, error::wallet_internal_error, "Failed to get transaction from daemon");
|
THROW_WALLET_EXCEPTION_IF(!ok, error::wallet_internal_error, "Failed to get transaction from daemon");
|
||||||
if (res.txs.empty())
|
THROW_WALLET_EXCEPTION_IF(res.txs.size() != 1, error::wallet_internal_error, "Failed to get transaction from daemon");
|
||||||
return false;
|
|
||||||
THROW_WALLET_EXCEPTION_IF(res.txs.size(), error::wallet_internal_error, "Failed to get transaction from daemon");
|
|
||||||
|
|
||||||
cryptonote::transaction tx;
|
cryptonote::transaction tx;
|
||||||
crypto::hash tx_hash;
|
crypto::hash tx_hash;
|
||||||
|
|
Loading…
Reference in a new issue