Skip to content

Commit a657da0

Browse files
Sjorsstevenroose
authored andcommitted
Validation: stop logging fake pow data
1 parent e9f6e82 commit a657da0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/validation.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,13 +1324,13 @@ void static InvalidChainFound(CBlockIndex* pindexNew) EXCLUSIVE_LOCKS_REQUIRED(c
13241324
if (!pindexBestInvalid || pindexNew->nChainWork > pindexBestInvalid->nChainWork)
13251325
pindexBestInvalid = pindexNew;
13261326

1327-
LogPrintf("%s: invalid block=%s height=%d log2_work=%.8g date=%s\n", __func__,
1327+
LogPrintf("%s: invalid block=%s height=%d date=%s\n", __func__,
13281328
pindexNew->GetBlockHash().ToString(), pindexNew->nHeight,
1329-
log(pindexNew->nChainWork.getdouble())/log(2.0), FormatISO8601DateTime(pindexNew->GetBlockTime()));
1329+
FormatISO8601DateTime(pindexNew->GetBlockTime()));
13301330
CBlockIndex *tip = chainActive.Tip();
13311331
assert (tip);
1332-
LogPrintf("%s: current best=%s height=%d log2_work=%.8g date=%s\n", __func__,
1333-
tip->GetBlockHash().ToString(), chainActive.Height(), log(tip->nChainWork.getdouble())/log(2.0),
1332+
LogPrintf("%s: current best=%s height=%d date=%s\n", __func__,
1333+
tip->GetBlockHash().ToString(), chainActive.Height(),
13341334
FormatISO8601DateTime(tip->GetBlockTime()));
13351335
CheckForkWarningConditions();
13361336
}
@@ -2390,9 +2390,9 @@ void static UpdateTip(const CBlockIndex *pindexNew, const CChainParams& chainPar
23902390
DoWarning(strWarning);
23912391
}
23922392
}
2393-
LogPrintf("%s: new best=%s height=%d version=0x%08x log2_work=%.8g tx=%lu date='%s' progress=%f cache=%.1fMiB(%utxo)", __func__, /* Continued */
2393+
LogPrintf("%s: new best=%s height=%d version=0x%08x tx=%lu date='%s' progress=%f cache=%.1fMiB(%utxo)", __func__, /* Continued */
23942394
pindexNew->GetBlockHash().ToString(), pindexNew->nHeight, pindexNew->nVersion,
2395-
log(pindexNew->nChainWork.getdouble())/log(2.0), (unsigned long)pindexNew->nChainTx,
2395+
(unsigned long)pindexNew->nChainTx,
23962396
FormatISO8601DateTime(pindexNew->GetBlockTime()),
23972397
GuessVerificationProgress(chainParams.TxData(), pindexNew), pcoinsTip->DynamicMemoryUsage() * (1.0 / (1<<20)), pcoinsTip->GetCacheSize());
23982398
if (!warningMessages.empty())

0 commit comments

Comments
 (0)