[net_processing] Move SendBlockTransactions into PeerManager

This commit is contained in:
John Newbery
2020-08-24 16:45:46 +01:00
parent 3115e00f75
commit aa114b1c9b
2 changed files with 7 additions and 4 deletions

View File

@@ -11,6 +11,7 @@
#include <sync.h>
#include <validationinterface.h>
class BlockTransactionsRequest;
class BlockValidationState;
class CBlockHeader;
class CChainParams;
@@ -118,6 +119,8 @@ private:
/** Process a single headers message from a peer. */
void ProcessHeadersMessage(CNode& pfrom, const std::vector<CBlockHeader>& headers, bool via_compact_block);
void SendBlockTransactions(CNode& pfrom, const CBlock& block, const BlockTransactionsRequest& req);
const CChainParams& m_chainparams;
CConnman& m_connman;
/** Pointer to this node's banman. May be nullptr - check existence before dereferencing. */