Changeset View
Changeset View
Standalone View
Standalone View
src/index/base.cpp
Show First 20 Lines • Show All 357 Lines • ▼ Show 20 Lines | bool BaseIndex::BlockUntilSyncedToCurrentChain() const { | ||||
return true; | return true; | ||||
} | } | ||||
void BaseIndex::Interrupt() { | void BaseIndex::Interrupt() { | ||||
m_interrupt(); | m_interrupt(); | ||||
} | } | ||||
void BaseIndex::Start(CChainState &active_chainstate) { | void BaseIndex::Start(CChainState &active_chainstate) { | ||||
assert(std::addressof(::ChainstateActive()) == | |||||
std::addressof(active_chainstate)); | |||||
m_chainstate = &active_chainstate; | m_chainstate = &active_chainstate; | ||||
// Need to register this ValidationInterface before running Init(), so that | // Need to register this ValidationInterface before running Init(), so that | ||||
// callbacks are not missed if Init sets m_synced to true. | // callbacks are not missed if Init sets m_synced to true. | ||||
RegisterValidationInterface(this); | RegisterValidationInterface(this); | ||||
if (!Init()) { | if (!Init()) { | ||||
FatalError("%s: %s failed to initialize", __func__, GetName()); | FatalError("%s: %s failed to initialize", __func__, GetName()); | ||||
return; | return; | ||||
} | } | ||||
Show All 21 Lines |