Bitcoin
|
Public Attributes | |
int64_t | m_timeout |
A timeout used for checking whether our peer has sufficiently synced. More... | |
const CBlockIndex * | m_work_header |
A header with the work we require on our peer's chain. More... | |
bool | m_sent_getheaders |
After timeout is reached, set to true after sending getheaders. More... | |
bool | m_protect |
Whether this peer is protected from disconnection due to a bad/slow chain. More... | |
State used to enforce CHAIN_SYNC_TIMEOUT Only in effect for outbound, non-manual connections, with m_protect == false Algorithm: if a peer's best known block has less work than our tip, set a timeout CHAIN_SYNC_TIMEOUT seconds in the future:
bool anonymous_namespace{net_processing.cpp}::CNodeState::ChainSyncTimeoutState::m_protect |
Whether this peer is protected from disconnection due to a bad/slow chain.
bool anonymous_namespace{net_processing.cpp}::CNodeState::ChainSyncTimeoutState::m_sent_getheaders |
After timeout is reached, set to true after sending getheaders.
int64_t anonymous_namespace{net_processing.cpp}::CNodeState::ChainSyncTimeoutState::m_timeout |
A timeout used for checking whether our peer has sufficiently synced.
const CBlockIndex* anonymous_namespace{net_processing.cpp}::CNodeState::ChainSyncTimeoutState::m_work_header |
A header with the work we require on our peer's chain.