Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 1,101 Lines • ▼ Show 20 Lines | private: | ||||
//! using this pointer (e.g. net_processing). | //! using this pointer (e.g. net_processing). | ||||
//! | //! | ||||
//! Once this pointer is set to a corresponding chainstate, it will not | //! Once this pointer is set to a corresponding chainstate, it will not | ||||
//! be reset until init.cpp:Shutdown(). | //! be reset until init.cpp:Shutdown(). | ||||
//! | //! | ||||
//! This is especially important when, e.g., calling ActivateBestChain() | //! This is especially important when, e.g., calling ActivateBestChain() | ||||
//! on all chainstates because we are not able to hold ::cs_main going into | //! on all chainstates because we are not able to hold ::cs_main going into | ||||
//! that call. | //! that call. | ||||
std::unique_ptr<CChainState> m_ibd_chainstate; | std::unique_ptr<CChainState> m_ibd_chainstate GUARDED_BY(::cs_main); | ||||
//! A chainstate initialized on the basis of a UTXO snapshot. If this is | //! A chainstate initialized on the basis of a UTXO snapshot. If this is | ||||
//! non-null, it is always our active chainstate. | //! non-null, it is always our active chainstate. | ||||
//! | //! | ||||
//! Once this pointer is set to a corresponding chainstate, it will not | //! Once this pointer is set to a corresponding chainstate, it will not | ||||
//! be reset until init.cpp:Shutdown(). | //! be reset until init.cpp:Shutdown(). | ||||
//! | //! | ||||
//! This is especially important when, e.g., calling ActivateBestChain() | //! This is especially important when, e.g., calling ActivateBestChain() | ||||
//! on all chainstates because we are not able to hold ::cs_main going into | //! on all chainstates because we are not able to hold ::cs_main going into | ||||
//! that call. | //! that call. | ||||
std::unique_ptr<CChainState> m_snapshot_chainstate; | std::unique_ptr<CChainState> m_snapshot_chainstate GUARDED_BY(::cs_main); | ||||
//! Points to either the ibd or snapshot chainstate; indicates our | //! Points to either the ibd or snapshot chainstate; indicates our | ||||
//! most-work chain. | //! most-work chain. | ||||
//! | //! | ||||
//! Once this pointer is set to a corresponding chainstate, it will not | //! Once this pointer is set to a corresponding chainstate, it will not | ||||
//! be reset until init.cpp:Shutdown(). | //! be reset until init.cpp:Shutdown(). | ||||
//! | //! | ||||
//! This is especially important when, e.g., calling ActivateBestChain() | //! This is especially important when, e.g., calling ActivateBestChain() | ||||
▲ Show 20 Lines • Show All 199 Lines • Show Last 20 Lines |