aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2021-05-19 21:24:33 +1000
committerAnthony Towns <aj@erisian.com.au>2021-05-21 12:14:01 +1000
commit793b2682841b0bdd7eb93163e34728765cfe52b2 (patch)
tree2859d80d60f47bbc9886c0d36dc7170fa864ab00 /src/test
parentea8b2e8e127b5a27424c1c08a1352ec1c9382c96 (diff)
downloadbitcoin-793b2682841b0bdd7eb93163e34728765cfe52b2.tar.xz
txmempool: add thread safety annotations
Diffstat (limited to 'src/test')
-rw-r--r--src/test/fuzz/tx_pool.cpp3
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;
}