6#ifndef BITCOIN_PRIMITIVES_BLOCK_H
7#define BITCOIN_PRIMITIVES_BLOCK_H
36 READWRITE(obj.nVersion, obj.hashPrevBlock, obj.hashMerkleRoot,
37 obj.nTime, obj.nBits, obj.nNonce);
63 std::vector<CTransactionRef>
vtx;
114 int nVersion = s.GetVersion();
std::string ToString() const
std::vector< CTransactionRef > vtx
SERIALIZE_METHODS(CBlock, obj)
CBlockHeader GetBlockHeader() const
CBlock(const CBlockHeader &header)
Implement std::hash so RCUPtr can be used as a key for maps or sets.
#define READWRITEAS(type, obj)
A BlockHash is a unqiue identifier for a block.
Describes a place in the block chain to another node such that if the other node doesn't have the sam...
std::vector< BlockHash > vHave
SERIALIZE_METHODS(CBlockLocator, obj)
CBlockLocator(std::vector< BlockHash > &&vHaveIn)
std::chrono::time_point< NodeClock, std::chrono::seconds > NodeSeconds