refactor: Use Mutex type for g_cs_recent_confirmed_transactions

This commit is contained in:
Hennadii Stepanov 2020-06-25 10:25:24 +03:00
parent 67881de0e3
commit 1307686798
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -189,7 +189,7 @@ namespace {
* We use this to avoid requesting transactions that have already been * We use this to avoid requesting transactions that have already been
* confirnmed. * confirnmed.
*/ */
RecursiveMutex g_cs_recent_confirmed_transactions; Mutex g_cs_recent_confirmed_transactions;
std::unique_ptr<CRollingBloomFilter> g_recent_confirmed_transactions GUARDED_BY(g_cs_recent_confirmed_transactions); std::unique_ptr<CRollingBloomFilter> g_recent_confirmed_transactions GUARDED_BY(g_cs_recent_confirmed_transactions);
/** Blocks that are in flight, and that are in the queue to be downloaded. */ /** Blocks that are in flight, and that are in the queue to be downloaded. */