diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-07-28 11:09:58 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-07-29 08:04:06 -0400 |
commit | fa5ed4f8d2c4cb3507bcc2460725d483f2e5789c (patch) | |
tree | 0dabe170ab89702055257cf214ab1de431aa4a9b /src/test/policyestimator_tests.cpp | |
parent | ad51e1372bc645fc8710da2bc9e0a9fc6c0f27bb (diff) |
refactor: Avoid locking tx pool cs thrice
Diffstat (limited to 'src/test/policyestimator_tests.cpp')
-rw-r--r-- | src/test/policyestimator_tests.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/policyestimator_tests.cpp b/src/test/policyestimator_tests.cpp index 8d288ec993..e45fb6d17e 100644 --- a/src/test/policyestimator_tests.cpp +++ b/src/test/policyestimator_tests.cpp @@ -18,6 +18,7 @@ BOOST_AUTO_TEST_CASE(BlockPolicyEstimates) { CBlockPolicyEstimator feeEst; CTxMemPool mpool(&feeEst); + LOCK(mpool.cs); TestMemPoolEntryHelper entry; CAmount basefee(2000); CAmount deltaFee(100); |