diff options
| author | MarcoFalke <[email protected]> | 2020-04-11 10:35:31 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-04-17 10:20:54 -0400 |
| commit | fa1fdb02fccd0f670f7b08ee61c249f04d0db17f (patch) | |
| tree | 0f8504551268bcd5713ab956f1f9e21a80f2b16c /src/bench/block_assemble.cpp | |
| parent | bench: Remove requirement that all benches use RegTestingSetup (diff) | |
| download | discoin-fa1fdb02fccd0f670f7b08ee61c249f04d0db17f.tar.xz discoin-fa1fdb02fccd0f670f7b08ee61c249f04d0db17f.zip | |
bench: Replace ::mempool globabl with test_setup.mempool
This is a refactor, since they are aliases for each other
Diffstat (limited to 'src/bench/block_assemble.cpp')
| -rw-r--r-- | src/bench/block_assemble.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/block_assemble.cpp b/src/bench/block_assemble.cpp index 594ca4967..1a0084c91 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); } } |