Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 2,362 Lines • ▼ Show 20 Lines | LogPrint(BCLog::BENCH, " - Load block from disk: %.2fms [%.2fs]\n", | ||||
FormatStateMessage(state)); | FormatStateMessage(state)); | ||||
} | } | ||||
// Update the finalized block. | // Update the finalized block. | ||||
const CBlockIndex *pindexToFinalize = | const CBlockIndex *pindexToFinalize = | ||||
FindBlockToFinalize(config, pindexNew); | FindBlockToFinalize(config, pindexNew); | ||||
if (pindexToFinalize && | if (pindexToFinalize && | ||||
!FinalizeBlockInternal(config, state, pindexToFinalize)) { | !FinalizeBlockInternal(config, state, pindexToFinalize)) { | ||||
state.SetCorruptionPossible(); | |||||
return error("ConnectTip(): FinalizeBlock %s failed (%s)", | return error("ConnectTip(): FinalizeBlock %s failed (%s)", | ||||
pindexNew->GetBlockHash().ToString(), | pindexNew->GetBlockHash().ToString(), | ||||
FormatStateMessage(state)); | FormatStateMessage(state)); | ||||
} | } | ||||
nTime3 = GetTimeMicros(); | nTime3 = GetTimeMicros(); | ||||
nTimeConnectTotal += nTime3 - nTime2; | nTimeConnectTotal += nTime3 - nTime2; | ||||
LogPrint(BCLog::BENCH, | LogPrint(BCLog::BENCH, | ||||
▲ Show 20 Lines • Show All 3,272 Lines • Show Last 20 Lines |