6 #ifndef BITCOIN_PRIMITIVES_BLOCK_H
7 #define BITCOIN_PRIMITIVES_BLOCK_H
35 READWRITE(obj.nVersion, obj.hashPrevBlock, obj.hashMerkleRoot,
36 obj.nTime, obj.nBits, obj.nNonce);
58 std::vector<CTransactionRef>
vtx;
109 int nVersion = s.GetVersion();
std::string ToString() const
std::vector< CTransactionRef > vtx
SERIALIZE_METHODS(CBlock, obj)
CBlockHeader GetBlockHeader() const
CBlock(const CBlockHeader &header)
#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(const std::vector< BlockHash > &vHaveIn)