Changeset View
Changeset View
Standalone View
Standalone View
src/index/base.cpp
Show First 20 Lines • Show All 319 Lines • ▼ Show 20 Lines | |||||
void BaseIndex::Stop() { | void BaseIndex::Stop() { | ||||
UnregisterValidationInterface(this); | UnregisterValidationInterface(this); | ||||
if (m_thread_sync.joinable()) { | if (m_thread_sync.joinable()) { | ||||
m_thread_sync.join(); | m_thread_sync.join(); | ||||
} | } | ||||
} | } | ||||
IndexSummary BaseIndex::GetSummary() const { | |||||
IndexSummary summary{}; | |||||
summary.name = GetName(); | |||||
summary.synced = m_synced; | |||||
summary.best_block_height = m_best_block_index.load()->nHeight; | |||||
return summary; | |||||
} |