MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / CheckBlockIndex

Function CheckBlockIndex

src/bench/checkblockindex.cpp:11–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include <memory>
10
11static void CheckBlockIndex(benchmark::Bench& bench)
12{
13 auto testing_setup{MakeNoLogFileContext<TestChain100Setup>()};
14 // Mine some more blocks
15 testing_setup->mineBlocks(1000);
16 bench.run([&] {
17 testing_setup->m_node.chainman->CheckBlockIndex();
18 });
19}
20
21
22BENCHMARK(CheckBlockIndex);

Callers 2

AcceptBlockMethod · 0.85

Calls 3

mineBlocksMethod · 0.80
CheckBlockIndexMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected