6 #ifndef BITCOIN_PRIMITIVES_BLOCK_H 7 #define BITCOIN_PRIMITIVES_BLOCK_H 36 template <
typename Stream,
typename Operation>
55 bool IsNull()
const {
return (nBits == 0); }
65 std::vector<CTransactionRef>
vtx;
79 template <
typename Stream,
typename Operation>
120 template <
typename Stream,
typename Operation>
131 bool IsNull()
const {
return vHave.empty(); }
134 #endif // BITCOIN_PRIMITIVES_BLOCK_H
CBlockHeader GetBlockHeader() const
Describes a place in the block chain to another node such that if the other node doesn't have the sam...
CBlock(const CBlockHeader &header)
void SerializationOp(Stream &s, Operation ser_action)
std::vector< BlockHash > vHave
#define READWRITEAS(type, obj)
std::string ToString(const T &t)
Locale-independent version of std::to_string.
void SerializationOp(Stream &s, Operation ser_action)
std::vector< CTransactionRef > vtx
A BlockHash is a unqiue identifier for a block.
CBlockLocator(const std::vector< BlockHash > &vHaveIn)