7 #ifndef PIVX_PRIMITIVES_BLOCK_H
8 #define PIVX_PRIMITIVES_BLOCK_H
42 READWRITE(obj.nVersion, obj.hashPrevBlock, obj.hashMerkleRoot, obj.nTime, obj.nBits, obj.nNonce);
45 if(obj.nVersion > 3 && obj.nVersion < 7)
49 if (obj.nVersion >= 8)
74 return (int64_t)
nTime;
83 std::vector<CTransactionRef>
vtx;
106 if(obj.vtx.size() > 1 && obj.vtx[1]->IsCoinStake())
136 return (
vtx.size() > 1 &&
vtx[1]->IsCoinStake());
166 int nVersion = s.GetVersion();
179 return vHave.empty();
std::string ToString() const
std::vector< CTransactionRef > vtx
SERIALIZE_METHODS(CBlock, obj)
std::vector< unsigned char > vchBlockSig
CBlockHeader GetBlockHeader() const
CBlock(const CBlockHeader &header)
bool IsProofOfStake() const
bool IsProofOfWork() const
#define READWRITEAS(type, obj)
Describes a place in the block chain to another node such that if the other node doesn't have the sam...
CBlockLocator(const std::vector< uint256 > &vHaveIn)
SERIALIZE_METHODS(CBlockLocator, obj)
std::vector< uint256 > vHave