14 #include "bench/data/block566553.raw.h" 24 CDataStream stream((
const char*)block_bench::block566553,
25 (
const char*)&block_bench::block566553[
sizeof(block_bench::block566553)],
33 assert(stream.
Rewind(
sizeof(block_bench::block566553)));
39 CDataStream stream((
const char*)block_bench::block566553,
40 (
const char*)&block_bench::block566553[
sizeof(block_bench::block566553)],
50 assert(stream.
Rewind(
sizeof(block_bench::block566553)));
53 assert(
CheckBlock(block, validationState, chainParams->GetConsensus()));
Double ended buffer combining vector and stream-like interfaces.
void write(const char *pch, size_t nSize)
static const std::string MAIN
BIP70 chain name strings (main, test or regtest)
std::unique_ptr< CChainParams > CreateChainParams(const std::string &chain)
Creates and returns a std::unique_ptr<CChainParams> of the chosen chain.
bool CheckBlock(const CBlock &block, CValidationState &state, const Consensus::Params &consensusParams, bool fCheckPOW, bool fCheckMerkleRoot)
Functions for validating blocks and updating the block tree.
BENCHMARK(DeserializeBlockTest)