aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2020-09-18 13:32:17 -0400
committerCarl Dong <contact@carldong.me>2021-05-27 13:50:11 -0400
commitf4a47a1febfa35ab077f2a841fe31a8cd9618250 (patch)
treec1fba6e501cb618703f27edb185733666b6d6668
parent91226eb91769aad5a63bc671595e1353a2b2247a (diff)
bench: Use existing chainman in AssembleBlock
-rw-r--r--src/bench/block_assemble.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/block_assemble.cpp b/src/bench/block_assemble.cpp
index aa72981cb4..b4b33d115f 100644
--- a/src/bench/block_assemble.cpp
+++ b/src/bench/block_assemble.cpp
@@ -37,7 +37,7 @@ static void AssembleBlock(benchmark::Bench& bench)
LOCK(::cs_main); // Required for ::AcceptToMemoryPool.
for (const auto& txr : txs) {
- const MempoolAcceptResult res = ::AcceptToMemoryPool(::ChainstateActive(), *test_setup->m_node.mempool, txr, false /* bypass_limits */);
+ const MempoolAcceptResult res = ::AcceptToMemoryPool(test_setup->m_node.chainman->ActiveChainstate(), *test_setup->m_node.mempool, txr, false /* bypass_limits */);
assert(res.m_result_type == MempoolAcceptResult::ResultType::VALID);
}
}