 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
8 #ifndef BITCOIN_PRIMITIVES_BLOCK_H
9 #define BITCOIN_PRIMITIVES_BLOCK_H
25 template <
typename Stream,
typename Operation>
26 inline void SerializationOp(Stream& s, Operation ser_action,
int nType,
int nVersion) {
88 template <
typename Stream,
typename Operation>
137 return (int64_t)
nTime;
146 std::vector<CTransaction>
vtx;
172 template <
typename Stream,
typename Operation>
176 if(
vtx.size() > 1 &&
vtx[1].IsCoinStake())
262 template <
typename Stream,
typename Operation>
263 inline void SerializationOp(Stream& s, Operation ser_action,
int nType,
int nVersion) {
276 return vHave.empty();
280 #endif // BITCOIN_PRIMITIVES_BLOCK_H
std::pair< COutPoint, unsigned int > GetProofOfStake() const
void SerializationOp(Stream &s, Operation ser_action, int nType, int nVersion)
bool IsProofOfWork() const
uint256 ComputePoAMerkleTree(bool *mutated=NULL) const
friend bool operator!=(const PoSBlockSummary &a, const PoSBlockSummary &b)
friend bool operator==(const PoSBlockSummary &a, const PoSBlockSummary &b)
CBlock(const CBlockHeader &header)
256-bit unsigned big integer.
CBlockLocator(const std::vector< uint256 > &vHaveIn)
Serialized script, used inside transaction inputs and outputs.
std::vector< CTransaction > vtx
void SerializationOp(Stream &s, Operation ser_action, int nType, int nVersion)
std::vector< uint256 > vHave
std::string ToString() const
bool IsProofOfAudit() const
An outpoint - a combination of a transaction hash and an index n into its vout.
void SerializationOp(Stream &s, Operation ser_action, int nType, int nVersion)
Describes a place in the block chain to another node such that if the other node doesn't have the sam...
std::vector< uint256 > poaMerkleTree
bool IsProofOfStake() const
std::vector< unsigned char > vchBlockSig
CBlockHeader GetBlockHeader() const
std::vector< PoSBlockSummary > posBlocksAudited