Merge pull request #6384

ec01077 db_lmdb: fix race crash using a stale cursor (moneromooo-monero)
This commit is contained in:
luigi1111 2020-04-04 13:14:19 -05:00
commit d102a72027
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
1 changed files with 1 additions and 0 deletions

View File

@ -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;