6#ifndef BITCOIN_PRIMITIVES_BLOCK_H
7#define BITCOIN_PRIMITIVES_BLOCK_H
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.
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
#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