| 1772 | } |
| 1773 | |
| 1774 | void static InvalidChainFound(CBlockIndex* pindexNew) |
| 1775 | { |
| 1776 | if (!pindexBestInvalid || pindexNew->nChainWork > pindexBestInvalid->nChainWork) |
| 1777 | pindexBestInvalid = pindexNew; |
| 1778 | |
| 1779 | LogPrintf("%s: invalid block=%s height=%d log2_work=%.8g date=%s\n", __func__, |
| 1780 | pindexNew->GetBlockHash().ToString(), pindexNew->nHeight, |
| 1781 | log(pindexNew->nChainWork.getdouble())/log(2.0), DateTimeStrFormat("%Y-%m-%d %H:%M:%S", |
| 1782 | pindexNew->GetBlockTime())); |
| 1783 | LogPrintf("%s: current best=%s height=%d log2_work=%.8g date=%s\n", __func__, |
| 1784 | chainActive.Tip()->GetBlockHash().ToString(), chainActive.Height(), log(chainActive.Tip()->nChainWork.getdouble())/log(2.0), |
| 1785 | DateTimeStrFormat("%Y-%m-%d %H:%M:%S", chainActive.Tip()->GetBlockTime())); |
| 1786 | CheckForkWarningConditions(); |
| 1787 | } |
| 1788 | |
| 1789 | void static InvalidBlockFound(CBlockIndex *pindex, const CValidationState &state, |
| 1790 | const BlockSource& blockSource) { |
no test coverage detected