aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.h
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2020-06-21 20:25:11 -0400
committerJohn Newbery <john@johnnewbery.com>2020-12-20 10:03:38 +0000
commit184557e8e03f76ff18dacdb32c12692d8578691f (patch)
treefc4538c59e456ac7a7b9e71474354b65bc7f9fe0 /src/net_processing.h
parentc853ef002ee7074b6e20eb8f58138c8293846424 (diff)
[net processing] Move hashContinue to net processing
Also rename to m_continuation_block to better communicate meaning.
Diffstat (limited to 'src/net_processing.h')
-rw-r--r--src/net_processing.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net_processing.h b/src/net_processing.h
index 3080a7da4c..32c5043a9d 100644
--- a/src/net_processing.h
+++ b/src/net_processing.h
@@ -76,6 +76,11 @@ struct Peer {
/** 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.
+ * When the peer requests this block, we send an `inv` message to trigger
+ * the peer to request the next sequence of block hashes.
+ * Most peers use headers-first syncing, which doesn't use this mechanism */
+ uint256 m_continuation_block{};
/** Set of txids to reconsider once their parent transactions have been accepted **/
std::set<uint256> m_orphan_work_set GUARDED_BY(g_cs_orphans);