/
githubmirror
/
bitcoin
Обзор
Документация
Войти
/
githubmirror
/
bitcoin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v31.1
src/bench/checkblockindex.cpp
22 строки
610 B
MarcoFalke
scripted-diff: Remove priority_level from BENCHMARK macro
13 янв 2026, 10:33
13 янв 2026, 10:33
fa51a28
Код
Авторство
О чём код?
// Copyright (c) 2023-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <test/util/setup_common.h> #include <validation.h> #include <memory> static void CheckBlockIndex(benchmark::Bench& bench) { auto testing_setup{MakeNoLogFileContext<TestChain100Setup>()}; // Mine some more blocks testing_setup->mineBlocks(1000); bench.run([&] { testing_setup->m_node.chainman->CheckBlockIndex(); }); } BENCHMARK(CheckBlockIndex);