10 #include <validation.h>
24 const uint256 blockHash = block.GetHash();
26 blockindex.
nBits = 403014710;
29 (void)
blockToJSON(block, &blockindex, &blockindex,
true);
const std::vector< uint8_t > block413567
Double ended buffer combining vector and stream-like interfaces.
void write(const char *pch, size_t nSize)
Bench & run(char const *benchmarkName, Op &&op)
Repeatedly calls op() based on the configuration, and performs measurements.
static void BlockToJsonVerbose(benchmark::Bench &bench)
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
Main entry point to nanobench's benchmarking facility.
BENCHMARK(BlockToJsonVerbose)
const uint256 * phashBlock
pointer to the hash of the block, if any. Memory is owned by this CBlockIndex