| 384 | } |
| 385 | |
| 386 | std::string ToString() const |
| 387 | { |
| 388 | return strprintf("CBlockIndex(pprev=%p, nHeight=%d, merkle=%s, hashBlock=%s)", |
| 389 | pprev, nHeight, |
| 390 | hashMerkleRoot.ToString(), |
| 391 | GetBlockHash().ToString()); |
| 392 | } |
| 393 | |
| 394 | //! Check whether this block index entry is valid up to the passed validity level. |
| 395 | bool IsValid(enum BlockStatus nUpTo = BLOCK_VALID_TRANSACTIONS) const |