mirror of
https://github.com/monero-project/monero.git
synced 2024-12-29 01:56:14 -05:00
Merge pull request #6384
ec01077
db_lmdb: fix race crash using a stale cursor (moneromooo-monero)
This commit is contained in:
commit
d102a72027
@ -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…
Reference in New Issue
Block a user