Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoin-chainstate.cpp
Show First 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | if (status != node::ChainstateLoadStatus::SUCCESS) { | ||||
std::cerr << "Failed to verify loaded Chain state from your datadir." | std::cerr << "Failed to verify loaded Chain state from your datadir." | ||||
<< std::endl; | << std::endl; | ||||
goto epilogue; | goto epilogue; | ||||
} | } | ||||
for (Chainstate *chainstate : | for (Chainstate *chainstate : | ||||
WITH_LOCK(::cs_main, return chainman.GetAll())) { | WITH_LOCK(::cs_main, return chainman.GetAll())) { | ||||
BlockValidationState state; | BlockValidationState state; | ||||
if (!chainstate->ActivateBestChain(config, state, nullptr)) { | if (!chainstate->ActivateBestChain(state, nullptr)) { | ||||
std::cerr << "Failed to connect best block (" << state.ToString() | std::cerr << "Failed to connect best block (" << state.ToString() | ||||
<< ")" << std::endl; | << ")" << std::endl; | ||||
goto epilogue; | goto epilogue; | ||||
} | } | ||||
} | } | ||||
// Main program logic starts here | // Main program logic starts here | ||||
std::cout | std::cout | ||||
▲ Show 20 Lines • Show All 172 Lines • Show Last 20 Lines |