aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-01-09 12:48:57 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-01-09 17:32:21 +0000
commitf507a43a239358b1645f383f6974f0862de2999b (patch)
tree6507a1103deed846f4cd022daca3317f870517e2 /src/wallet/wallet2.cpp
parentMerge pull request #6232 (diff)
downloadmonero-f507a43a239358b1645f383f6974f0862de2999b.tar.xz
wallet2: do not remove known rings when a tx fails
Even if it fails, the ring composition is known to a potential adversary, and so we should reuse the same ring next time
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r--src/wallet/wallet2.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index ea556ec45..58a531557 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -2907,7 +2907,6 @@ void wallet2::update_pool_state(std::vector<std::pair<cryptonote::transaction, b
pit->second.m_state = wallet2::unconfirmed_transfer_details::failed;
// the inputs aren't spent anymore, since the tx failed
- remove_rings(pit->second.m_tx);
for (size_t vini = 0; vini < pit->second.m_tx.vin.size(); ++vini)
{
if (pit->second.m_tx.vin[vini].type() == typeid(txin_to_key))