@@ -2030,7 +2030,7 @@ void PeerManager::ProcessHeadersMessage(CNode& pfrom, const std::vector<CBlockHe
2030
2030
return ;
2031
2031
}
2032
2032
2033
- void static ProcessOrphanTx (CConnman& connman, CTxMemPool& mempool, std::set<uint256>& orphan_work_set, std::list<CTransactionRef>& removed_txn) EXCLUSIVE_LOCKS_REQUIRED(cs_main, g_cs_orphans )
2033
+ void PeerManager:: ProcessOrphanTx (std::set<uint256>& orphan_work_set, std::list<CTransactionRef>& removed_txn)
2034
2034
{
2035
2035
AssertLockHeld (cs_main);
2036
2036
AssertLockHeld (g_cs_orphans);
@@ -2052,9 +2052,9 @@ void static ProcessOrphanTx(CConnman& connman, CTxMemPool& mempool, std::set<uin
2052
2052
TxValidationState orphan_state;
2053
2053
2054
2054
if (setMisbehaving.count (fromPeer)) continue ;
2055
- if (AcceptToMemoryPool (mempool , orphan_state, porphanTx, &removed_txn, false /* bypass_limits */ , 0 /* nAbsurdFee */ )) {
2055
+ if (AcceptToMemoryPool (m_mempool , orphan_state, porphanTx, &removed_txn, false /* bypass_limits */ , 0 /* nAbsurdFee */ )) {
2056
2056
LogPrint (BCLog::MEMPOOL, " accepted orphan tx %s\n " , orphanHash.ToString ());
2057
- RelayTransaction (orphanHash, porphanTx->GetWitnessHash (), connman );
2057
+ RelayTransaction (orphanHash, porphanTx->GetWitnessHash (), m_connman );
2058
2058
for (unsigned int i = 0 ; i < orphanTx.vout .size (); i++) {
2059
2059
auto it_by_prev = mapOrphanTransactionsByPrev.find (COutPoint (orphanHash, i));
2060
2060
if (it_by_prev != mapOrphanTransactionsByPrev.end ()) {
@@ -2112,7 +2112,7 @@ void static ProcessOrphanTx(CConnman& connman, CTxMemPool& mempool, std::set<uin
2112
2112
EraseOrphanTx (orphanHash);
2113
2113
done = true ;
2114
2114
}
2115
- mempool .check (&::ChainstateActive ().CoinsTip ());
2115
+ m_mempool .check (&::ChainstateActive ().CoinsTip ());
2116
2116
}
2117
2117
}
2118
2118
@@ -3030,7 +3030,7 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat
3030
3030
m_mempool.size (), m_mempool.DynamicMemoryUsage () / 1000 );
3031
3031
3032
3032
// Recursively process any orphan transactions that depended on this one
3033
- ProcessOrphanTx (m_connman, m_mempool, pfrom.orphan_work_set , lRemovedTxn);
3033
+ ProcessOrphanTx (pfrom.orphan_work_set , lRemovedTxn);
3034
3034
}
3035
3035
else if (state.GetResult () == TxValidationResult::TX_MISSING_INPUTS)
3036
3036
{
@@ -3850,7 +3850,7 @@ bool PeerManager::ProcessMessages(CNode* pfrom, std::atomic<bool>& interruptMsgP
3850
3850
if (!pfrom->orphan_work_set .empty ()) {
3851
3851
std::list<CTransactionRef> removed_txn;
3852
3852
LOCK2 (cs_main, g_cs_orphans);
3853
- ProcessOrphanTx (m_connman, m_mempool, pfrom->orphan_work_set , removed_txn);
3853
+ ProcessOrphanTx (pfrom->orphan_work_set , removed_txn);
3854
3854
for (const CTransactionRef& removedTx : removed_txn) {
3855
3855
AddToCompactExtraTransactions (removedTx);
3856
3856
}
0 commit comments