[refactor] interfaces: Add missing LockAnnotation for cs_main

This commit is contained in:
MarcoFalke committed 2019-05-13 14:46:01 -04:00
1 parent 14959753a4
commit fa3c651143
11 files changed
+55 -20

No files matched your search

+1
View File
@@ -114,6 +114,7 @@ void benchmark::BenchRunner::RunAll(Printer& printer, uint64_t num_evals, double
for (const auto& p : benchmarks()) {
TestingSetup test{CBaseChainParams::REGTEST};
{
LOCK(cs_main);
assert(::ChainActive().Height() == 0);
const bool witness_enabled{IsWitnessEnabled(::ChainActive().Tip(), Params().GetConsensus())};
assert(witness_enabled);