Bitcoin
Public Attributes | List of all members
anonymous_namespace{net_processing.cpp}::CNodeState::ChainSyncTimeoutState Struct Reference

Public Attributes

int64_t m_timeout
 A timeout used for checking whether our peer has sufficiently synced. More...
 
const CBlockIndexm_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...
 

Detailed Description

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:

Member Data Documentation

◆ m_protect

bool anonymous_namespace{net_processing.cpp}::CNodeState::ChainSyncTimeoutState::m_protect

Whether this peer is protected from disconnection due to a bad/slow chain.

◆ m_sent_getheaders

bool anonymous_namespace{net_processing.cpp}::CNodeState::ChainSyncTimeoutState::m_sent_getheaders

After timeout is reached, set to true after sending getheaders.

◆ m_timeout

int64_t anonymous_namespace{net_processing.cpp}::CNodeState::ChainSyncTimeoutState::m_timeout

A timeout used for checking whether our peer has sufficiently synced.

◆ m_work_header

const CBlockIndex* anonymous_namespace{net_processing.cpp}::CNodeState::ChainSyncTimeoutState::m_work_header

A header with the work we require on our peer's chain.


The documentation for this struct was generated from the following file: