bench: Replace ::mempool globabl with test_setup.mempool

This is a refactor, since they are aliases for each other
This commit is contained in:
MarcoFalke 2020-04-11 10:35:31 -04:00
parent fab1170964
commit fa1fdb02fc
No known key found for this signature in database
GPG key ID: CE2B75697E69A548

View file

@ -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);
}
}