diff options
author | John Newbery <john@johnnewbery.com> | 2020-08-24 15:51:39 +0100 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2020-09-07 11:16:12 +0100 |
commit | d7778351bf60a21925a97b7fc4e9df5541b6d995 (patch) | |
tree | c4f97053f593075ee768a58dbf134977ff02259b /src/net_processing.h | |
parent | 64f6162651420be2f4aa1498f0378a86780bc089 (diff) |
[net processing] Move ProcessHeadersMessage to PeerManager
Diffstat (limited to 'src/net_processing.h')
-rw-r--r-- | src/net_processing.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net_processing.h b/src/net_processing.h index 6ffd6c4fd6..d4793ce303 100644 --- a/src/net_processing.h +++ b/src/net_processing.h @@ -11,6 +11,7 @@ #include <sync.h> #include <validationinterface.h> +class CBlockHeader; class CChainParams; class CTxMemPool; class ChainstateManager; @@ -90,6 +91,9 @@ private: */ bool MaybeDiscourageAndDisconnect(CNode& pnode); + /** Process a single headers message from a peer. */ + void ProcessHeadersMessage(CNode& pfrom, const std::vector<CBlockHeader>& headers, bool via_compact_block); + const CChainParams& m_chainparams; CConnman& m_connman; /** Pointer to this node's banman. May be nullptr - check existence before dereferencing. */ |