[net processing] Move hashContinue to net processing

Also rename to m_continuation_block to better communicate meaning.
This commit is contained in:
John Newbery
2020-06-21 20:25:11 -04:00
parent c853ef002e
commit 184557e8e0
4 changed files with 10 additions and 8 deletions

View File

@@ -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);