8#include <chainparams.h>
22 stream.
write({&a, 1});
36 stream.
write({&a, 1});
50 bool checked =
CheckBlock(block, validationState, params, options);
static void DeserializeAndCheckBlockTest(benchmark::Bench &bench)
static void DeserializeBlockTest(benchmark::Bench &bench)
const Consensus::Params & GetConsensus() const
virtual const CChainParams & GetChainParams() const =0
Double ended buffer combining vector and stream-like interfaces.
void write(Span< const value_type > src)
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.
const Config & GetConfig()
const std::vector< uint8_t > block413567
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.