|
|
@ -859,13 +859,13 @@ public: |
|
|
|
{ |
|
|
|
{ |
|
|
|
return strprintf("CBlockIndex(pprev=%p, nHeight=%d, merkle=%s, hashBlock=%s)", |
|
|
|
return strprintf("CBlockIndex(pprev=%p, nHeight=%d, merkle=%s, hashBlock=%s)", |
|
|
|
pprev, nHeight, |
|
|
|
pprev, nHeight, |
|
|
|
hashMerkleRoot.ToString().c_str(), |
|
|
|
hashMerkleRoot.ToString(), |
|
|
|
GetBlockHash().ToString().c_str()); |
|
|
|
GetBlockHash().ToString()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void print() const |
|
|
|
void print() const |
|
|
|
{ |
|
|
|
{ |
|
|
|
LogPrintf("%s\n", ToString().c_str()); |
|
|
|
LogPrintf("%s\n", ToString()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Check whether this block index entry is valid up to the passed validity level.
|
|
|
|
// Check whether this block index entry is valid up to the passed validity level.
|
|
|
@ -950,14 +950,14 @@ public: |
|
|
|
std::string str = "CDiskBlockIndex("; |
|
|
|
std::string str = "CDiskBlockIndex("; |
|
|
|
str += CBlockIndex::ToString(); |
|
|
|
str += CBlockIndex::ToString(); |
|
|
|
str += strprintf("\n hashBlock=%s, hashPrev=%s)", |
|
|
|
str += strprintf("\n hashBlock=%s, hashPrev=%s)", |
|
|
|
GetBlockHash().ToString().c_str(), |
|
|
|
GetBlockHash().ToString(), |
|
|
|
hashPrev.ToString().c_str()); |
|
|
|
hashPrev.ToString()); |
|
|
|
return str; |
|
|
|
return str; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void print() const |
|
|
|
void print() const |
|
|
|
{ |
|
|
|
{ |
|
|
|
LogPrintf("%s\n", ToString().c_str()); |
|
|
|
LogPrintf("%s\n", ToString()); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|