wallet: fix exceptions getting the hash of a pruned tx

This commit is contained in:
moneromooo-monero 2019-12-30 03:09:00 +00:00
parent b4e1dc83d2
commit a6c24412e5
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
4 changed files with 13 additions and 13 deletions

View file

@ -2438,7 +2438,7 @@ namespace tools
if (req.pool)
{
std::vector<std::pair<cryptonote::transaction, bool>> process_txs;
std::vector<std::tuple<cryptonote::transaction, crypto::hash, bool>> process_txs;
m_wallet->update_pool_state(process_txs);
if (!process_txs.empty())
m_wallet->process_pool_state(process_txs);
@ -2521,7 +2521,7 @@ namespace tools
}
}
std::vector<std::pair<cryptonote::transaction, bool>> process_txs;
std::vector<std::tuple<cryptonote::transaction, crypto::hash, bool>> process_txs;
m_wallet->update_pool_state(process_txs);
if (!process_txs.empty())
m_wallet->process_pool_state(process_txs);