19 s <<
strprintf(
"CBlock(hash=%s, ver=0x%08x, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%u)\n",
26 for (
const auto& tx :
vtx) {
27 s <<
" " << tx->ToString() <<
"\n";
std::string ToString() const
std::vector< CTransactionRef > vtx
A writer stream (for serialization) that computes a 256-bit hash.
std::string ToString() const