Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 4,047 Lines • ▼ Show 20 Lines | AssertLockNotHeld(cs_main); | ||||
if (ret) { | if (ret) { | ||||
// Store to disk | // Store to disk | ||||
ret = g_chainstate.AcceptBlock( | ret = g_chainstate.AcceptBlock( | ||||
config, pblock, state, fForceProcessing, nullptr, fNewBlock); | config, pblock, state, fForceProcessing, nullptr, fNewBlock); | ||||
} | } | ||||
if (!ret) { | if (!ret) { | ||||
GetMainSignals().BlockChecked(*pblock, state); | GetMainSignals().BlockChecked(*pblock, state); | ||||
return error("%s: AcceptBlock FAILED", __func__); | return error("%s: AcceptBlock FAILED (%s)", __func__, | ||||
state.GetDebugMessage()); | |||||
} | } | ||||
} | } | ||||
NotifyHeaderTip(); | NotifyHeaderTip(); | ||||
// Only used to report errors, not invalidity - ignore it | // Only used to report errors, not invalidity - ignore it | ||||
CValidationState state; | CValidationState state; | ||||
if (!g_chainstate.ActivateBestChain(config, state, pblock)) { | if (!g_chainstate.ActivateBestChain(config, state, pblock)) { | ||||
▲ Show 20 Lines • Show All 1,587 Lines • Show Last 20 Lines |