8#include <chainparams.h>
25 bench.unit(
"block").run([&] {
43 bench.unit(
"block").run([&] {
static void DeserializeAndCheckBlockTest(benchmark::Bench &bench)
static void DeserializeBlockTest(benchmark::Bench &bench)
const Consensus::Params & GetConsensus() const
Double ended buffer combining vector and stream-like interfaces.
void write(Span< const value_type > src)
bool Rewind(std::optional< size_type > n=std::nullopt)
virtual const CChainParams & GetChainParams() const =0
Main entry point to nanobench's benchmarking facility.
const Config & GetConfig()
const std::vector< uint8_t > block413567
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Parameters that influence chain consensus.
bool CheckBlock(const CBlock &block, BlockValidationState &state, const Consensus::Params ¶ms, BlockValidationOptions validationOptions)
Functions for validating blocks and updating the block tree.
static const int PROTOCOL_VERSION
network protocol versioning