Merge pull request #6384

ec01077 db_lmdb: fix race crash using a stale cursor (moneromooo-monero)
pull/241/head
luigi1111 4 years ago
commit d102a72027
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

@ -1915,6 +1915,7 @@ bool BlockchainLMDB::get_txpool_tx_blob(const crypto::hash& txid, cryptonote::bl
// if filtering, make sure those requirements are met before copying blob
if (tx_category != relay_category::all)
{
RCURSOR(txpool_meta)
auto result = mdb_cursor_get(m_cur_txpool_meta, &k, &v, MDB_SET);
if (result == MDB_NOTFOUND)
return false;

Loading…
Cancel
Save