6#include <bench/data/block413567.raw.h>
22 const auto block_data{benchmark::data::block413567};
33 const auto block_data{benchmark::data::block413567};
44 const bool checked{
CheckBlock(block, validationState, chain_params->GetConsensus())};
BENCHMARK(DeserializeBlockTest)
static void CheckBlockTest(benchmark::Bench &bench)
static void DeserializeBlockTest(benchmark::Bench &bench)
std::vector< CTransactionRef > vtx
static std::unique_ptr< const CChainParams > Main()
Minimal stream for reading from an existing byte array by std::span.
Main entry point to nanobench's benchmarking facility.
Bench & run(char const *benchmarkName, Op &&op)
Repeatedly calls op() based on the configuration, and performs measurements.
Bench & unit(char const *unit)
Sets the operation unit.
detail::SetupRunner< SetupOp > setup(SetupOp setupOp)
Configure an untimed setup step per epoch (forces single-iteration epochs).
static constexpr TransactionSerParams TX_WITH_WITNESS
bool CheckBlock(const CBlock &block, BlockValidationState &state, const Consensus::Params &consensusParams, bool fCheckPOW, bool fCheckMerkleRoot)
Functions for validating blocks and updating the block tree.