Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
h4x3rotab committed Jul 13, 2020
1 parent 006526b commit a3409b3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2637,8 2637,7 @@ CBlockIndex* CChainState::FindMostWorkChain() {
// If this block will cause a finalized block to be reorged, then we
// mark it as invalid.
if (pindexFinalized && !AreOnTheSameFork(pindexNew, pindexFinalized)) {
LogPrintf("Mark block %s invalid because it forks prior to the "
"finalization point %d.\n",
LogPrintf("Mark block %s invalid because it forks prior to the finalization point %d.\n",
pindexNew->GetBlockHash().ToString(),
pindexFinalized->nHeight);
pindexNew->nStatus |= BLOCK_FAILED_VALID;
Expand Down Expand Up @@ -3723,11 3722,9 @@ bool CChainState::AcceptBlock(const std::shared_ptr<const CBlock>& pblock, CVali
bool isSameHeight =
chainActive.Tip() && (pindex->nChainWork == chainActive.Tip()->nChainWork);
if (isSameHeight) {
LogPrintf("Chain tip timestamp-to-received-time difference: hash=%s, "
"diff=%d\n",
LogPrintf("Chain tip timestamp-to-received-time difference: hash=%s, diff=%d\n",
chainActive.Tip()->GetBlockHash().ToString(), chainTipTimeDiff);
LogPrintf("New block timestamp-to-received-time difference: hash=%s, "
"diff=%d\n",
LogPrintf("New block timestamp-to-received-time difference: hash=%s, diff=%d\n",
pindex->GetBlockHash().ToString(), newBlockTimeDiff);
}

Expand Down

0 comments on commit a3409b3

Please sign in to comment.