diff options
author | Anthony Towns <aj@erisian.com.au> | 2021-05-19 21:24:33 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2021-05-21 12:14:01 +1000 |
commit | 793b2682841b0bdd7eb93163e34728765cfe52b2 (patch) | |
tree | 2859d80d60f47bbc9886c0d36dc7170fa864ab00 /src/test/fuzz | |
parent | ea8b2e8e127b5a27424c1c08a1352ec1c9382c96 (diff) |
txmempool: add thread safety annotations
Diffstat (limited to 'src/test/fuzz')
-rw-r--r-- | src/test/fuzz/tx_pool.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/fuzz/tx_pool.cpp b/src/test/fuzz/tx_pool.cpp index 068e207118..ad11f2c5f2 100644 --- a/src/test/fuzz/tx_pool.cpp +++ b/src/test/fuzz/tx_pool.cpp @@ -21,8 +21,9 @@ std::vector<COutPoint> g_outpoints_coinbase_init_mature; std::vector<COutPoint> g_outpoints_coinbase_init_immature; struct MockedTxPool : public CTxMemPool { - void RollingFeeUpdate() + void RollingFeeUpdate() EXCLUSIVE_LOCKS_REQUIRED(!cs) { + LOCK(cs); lastRollingFeeUpdate = GetTime(); blockSinceLastRollingFeeBump = true; } |