@@ -1828,7 +1828,7 @@ static uint32_t GetFetchFlags(const CNode& pfrom) EXCLUSIVE_LOCKS_REQUIRED(cs_ma
1828
1828
return nFetchFlags;
1829
1829
}
1830
1830
1831
- inline void static SendBlockTransactions (const CBlock& block, const BlockTransactionsRequest& req, CNode& pfrom, CConnman& connman ) {
1831
+ void PeerManager:: SendBlockTransactions (CNode& pfrom, const CBlock& block, const BlockTransactionsRequest& req) {
1832
1832
BlockTransactions resp (req);
1833
1833
for (size_t i = 0 ; i < req.indexes .size (); i++) {
1834
1834
if (req.indexes [i] >= block.vtx .size ()) {
@@ -1840,7 +1840,7 @@ inline void static SendBlockTransactions(const CBlock& block, const BlockTransac
1840
1840
LOCK (cs_main);
1841
1841
const CNetMsgMaker msgMaker (pfrom.GetSendVersion ());
1842
1842
int nSendFlags = State (pfrom.GetId ())->fWantsCmpctWitness ? 0 : SERIALIZE_TRANSACTION_NO_WITNESS;
1843
- connman .PushMessage (&pfrom, msgMaker.Make (nSendFlags, NetMsgType::BLOCKTXN, resp));
1843
+ m_connman .PushMessage (&pfrom, msgMaker.Make (nSendFlags, NetMsgType::BLOCKTXN, resp));
1844
1844
}
1845
1845
1846
1846
void PeerManager::ProcessHeadersMessage (CNode& pfrom, const std::vector<CBlockHeader>& headers, bool via_compact_block)
@@ -2845,7 +2845,7 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat
2845
2845
// Unlock cs_most_recent_block to avoid cs_main lock inversion
2846
2846
}
2847
2847
if (recent_block) {
2848
- SendBlockTransactions (*recent_block, req, pfrom, m_connman );
2848
+ SendBlockTransactions (pfrom, *recent_block, req);
2849
2849
return ;
2850
2850
}
2851
2851
@@ -2878,7 +2878,7 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat
2878
2878
bool ret = ReadBlockFromDisk (block, pindex, m_chainparams.GetConsensus ());
2879
2879
assert (ret);
2880
2880
2881
- SendBlockTransactions (block, req, pfrom, m_connman );
2881
+ SendBlockTransactions (pfrom, block, req );
2882
2882
return ;
2883
2883
}
2884
2884
0 commit comments