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
This commit is contained in:
parent
907292dfb4
commit
f507a43a23
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user