6#include <bench/data/block413567.raw.h>
7#include <chainparams.h>
15#include <validation.h>
42 const fs::path
blkfile{testing_setup.get()->m_path_root /
"blk.dat"};
44 auto params{testing_setup->m_node.chainman->GetParams()};
45 ss << params.MessageStart();
48 ss << std::span{benchmark::data::block413567};
57 throw std::runtime_error(
"write to test file failed\n");
Non-refcounted RAII wrapper for FILE*.
Double ended buffer combining vector and stream-like interfaces.
Main entry point to nanobench's benchmarking facility.
static void LoadExternalBlockFile(benchmark::Bench &bench)
The LoadExternalBlockFile() function is used during -reindex and -loadblock.
FILE * fopen(const fs::path &p, const char *mode)
static const unsigned int MAX_BLOCKFILE_SIZE
The maximum size of a blk?????.dat file (since 0.8)
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.