Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.h
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | struct Peer { | ||||
/** | /** | ||||
* Unfiltered list of blocks that we'd like to announce via a `headers` | * Unfiltered list of blocks that we'd like to announce via a `headers` | ||||
* message. If we can't announce via a `headers` message, we'll fall back to | * message. If we can't announce via a `headers` message, we'll fall back to | ||||
* announcing via `inv`. | * announcing via `inv`. | ||||
*/ | */ | ||||
std::vector<BlockHash> | std::vector<BlockHash> | ||||
m_blocks_for_headers_relay GUARDED_BY(m_block_inv_mutex); | m_blocks_for_headers_relay GUARDED_BY(m_block_inv_mutex); | ||||
/** This peer's reported block height when we connected */ | |||||
std::atomic<int> m_starting_height{-1}; | |||||
/** | /** | ||||
* The final block hash that we sent in an `inv` message to this peer. | * The final block hash that we sent in an `inv` message to this peer. | ||||
* When the peer requests this block, we send an `inv` message to trigger | * When the peer requests this block, we send an `inv` message to trigger | ||||
* the peer to request the next sequence of block hashes. | * the peer to request the next sequence of block hashes. | ||||
* Most peers use headers-first syncing, which doesn't use this mechanism | * Most peers use headers-first syncing, which doesn't use this mechanism | ||||
*/ | */ | ||||
BlockHash m_continuation_block{}; | BlockHash m_continuation_block GUARDED_BY(m_block_inv_mutex){}; | ||||
/** This peer's reported block height when we connected */ | |||||
std::atomic<int> m_starting_height{-1}; | |||||
/** | /** | ||||
* Set of txids to reconsider once their parent transactions have been | * Set of txids to reconsider once their parent transactions have been | ||||
* accepted | * accepted | ||||
*/ | */ | ||||
std::set<TxId> m_orphan_work_set GUARDED_BY(g_cs_orphans); | std::set<TxId> m_orphan_work_set GUARDED_BY(g_cs_orphans); | ||||
/** Protects m_getdata_requests **/ | /** Protects m_getdata_requests **/ | ||||
▲ Show 20 Lines • Show All 238 Lines • Show Last 20 Lines |