From fa1fdb02fccd0f670f7b08ee61c249f04d0db17f Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Sat, 11 Apr 2020 10:35:31 -0400 Subject: bench: Replace ::mempool globabl with test_setup.mempool This is a refactor, since they are aliases for each other --- src/bench/block_assemble.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/bench/block_assemble.cpp b/src/bench/block_assemble.cpp index 594ca4967d..1a0084c915 100644 --- a/src/bench/block_assemble.cpp +++ b/src/bench/block_assemble.cpp @@ -42,7 +42,7 @@ static void AssembleBlock(benchmark::State& state) for (const auto& txr : txs) { TxValidationState state; - bool ret{::AcceptToMemoryPool(::mempool, state, txr, nullptr /* plTxnReplaced */, false /* bypass_limits */, /* nAbsurdFee */ 0)}; + bool ret{::AcceptToMemoryPool(*test_setup.m_node.mempool, state, txr, nullptr /* plTxnReplaced */, false /* bypass_limits */, /* nAbsurdFee */ 0)}; assert(ret); } } -- cgit v1.2.3