10 #include <validation.h> 25 const auto blockHash = block.GetHash();
27 blockindex.
nBits = 403014710;
30 (void)
blockToJSON(block, &blockindex, &blockindex,
true);
const BlockHash * phashBlock
pointer to the hash of the block, if any.
const std::vector< uint8_t > block413567
Double ended buffer combining vector and stream-like interfaces.
void write(const char *pch, size_t nSize)
BENCHMARK(BlockToJsonVerbose, 10)
static void BlockToJsonVerbose(benchmark::State &state)
UniValue blockToJSON(const CBlock &block, const CBlockIndex *tip, const CBlockIndex *blockindex, bool txDetails)
Block description to JSON.
The block chain is a tree shaped structure starting with the genesis block at the root...
static const int PROTOCOL_VERSION
network protocol versioning