Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 1,155 Lines • ▼ Show 20 Lines | const CBlockIndex *FindBlockToFinalize(CBlockIndex *pindexNew) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs_main); | ||||
//! Indirection necessary to make lock annotations work with an optional | //! Indirection necessary to make lock annotations work with an optional | ||||
//! mempool. | //! mempool. | ||||
RecursiveMutex *MempoolMutex() const LOCK_RETURNED(m_mempool->cs) { | RecursiveMutex *MempoolMutex() const LOCK_RETURNED(m_mempool->cs) { | ||||
return m_mempool ? &m_mempool->cs : nullptr; | return m_mempool ? &m_mempool->cs : nullptr; | ||||
} | } | ||||
/** | |||||
* Check warning conditions and do some notifications on new chain tip set. | |||||
*/ | |||||
void UpdateTip(CBlockIndex *pindexNew) EXCLUSIVE_LOCKS_REQUIRED(::cs_main); | |||||
friend ChainstateManager; | friend ChainstateManager; | ||||
}; | }; | ||||
/** | /** | ||||
* Provides an interface for creating and interacting with one or two | * Provides an interface for creating and interacting with one or two | ||||
* chainstates: an IBD chainstate generated by downloading blocks, and | * chainstates: an IBD chainstate generated by downloading blocks, and | ||||
* an optional snapshot chainstate loaded from a UTXO snapshot. Managed | * an optional snapshot chainstate loaded from a UTXO snapshot. Managed | ||||
* chainstates can be maintained at different heights simultaneously. | * chainstates can be maintained at different heights simultaneously. | ||||
▲ Show 20 Lines • Show All 258 Lines • Show Last 20 Lines |