 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
83 #if defined(WORDS_BIGENDIAN)
85 #else // Can take shortcut for little endian
91 #if defined(WORDS_BIGENDIAN)
96 WriteLE32(&data[68],
nTime);
97 WriteLE32(&data[72],
nBits);
99 return Hash(data, data + 80);
100 #else // Can take shortcut for little endian
105 #if defined(WORDS_BIGENDIAN)
110 WriteLE32(&data[68],
nTime);
111 WriteLE32(&data[72],
nBits);
112 WriteLE32(&data[76],
nNonce);
114 #else // Can take shortcut for little endian
129 bool mutated =
false;
130 for (
int nSize =
posBlocksAudited.size(); nSize > 1; nSize = (nSize + 1) / 2)
132 for (
int i = 0; i < nSize; i += 2)
134 int i2 = std::min(i+1, nSize-1);
154 s <<
strprintf(
"PoABlock(hash=%s, ver=%d, hashPrevBlock=%s, hashPrevPoABlock=%s, hashMerkleRoot=%s, hashPoAMerkleRoot=%s, minedHash=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%u, PoSBlocks=%u)\n",
166 s <<
strprintf(
"CBlock(hash=%s, ver=%d, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%u)\n",
174 for (
unsigned int i = 0; i <
vtx.size(); i++)
176 s <<
" " <<
vtx[i].ToString() <<
"\n";
const uint256 UINT256_ZERO
constant uint256 instances
uint256 SerializeHash(const T &obj, int nType=SER_GETHASH, int nVersion=PROTOCOL_VERSION)
Compute the 256-bit hash of an object's serialization.
#define BEGIN(a)
Utilities for converting data from/to strings.
uint256 ComputePoAMerkleTree(bool *mutated=NULL) const
unsigned int size() const
void * memcpy(void *a, const void *b, size_t c)
256-bit unsigned big integer.
uint256 HashQuark(const T1 pbegin, const T1 pend)
std::vector< CTransaction > vtx
std::string ToString() const
bool IsProofOfAudit() const
std::string Hash(std::string input)
Compute the 256-bit hash of a std::string.
std::vector< uint256 > poaMerkleTree
std::vector< PoSBlockSummary > posBlocksAudited
std::string ToString() const