Skip to content

Commit

Permalink
bench: Replace ::mempool globabl with test_setup.mempool
Browse files Browse the repository at this point in the history
This is a refactor, since they are aliases for each other
  • Loading branch information
MarcoFalke committed Apr 17, 2020
1 parent fab1170 commit fa1fdb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bench/block_assemble.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit fa1fdb0

Please sign in to comment.