22 CDataStream stream((
const char*)block_bench::block413567,
23 (
const char*)&block_bench::block413567[
sizeof(block_bench::block413567)],
24 SER_NETWORK, PROTOCOL_VERSION | SERIALIZE_BLOCK_LEGACY);
37 CDataStream stream((
const char*)block_bench::block413567,
38 (
const char*)&block_bench::block413567[
sizeof(block_bench::block413567)],
39 SER_NETWORK, PROTOCOL_VERSION | SERIALIZE_BLOCK_LEGACY );
static const std::string UNITTEST
assert(len-trim+(2 *lenIndices)<=WIDTH)
Double ended buffer combining vector and stream-like interfaces.
void write(const char *pch, size_t nSize)
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.
Capture information about block/transaction validation.