@@ -242,7 +242,7 @@ class PeerManagerImpl final : public PeerManager
242
242
bool GetNodeStateStats (NodeId nodeid, CNodeStateStats& stats) override ;
243
243
bool IgnoresIncomingTxs () override { return m_ignore_incoming_txs; }
244
244
void SendPings () override ;
245
- void RelayTransaction (const uint256& txid, const uint256& wtxid, const CConnman& connman ) override ;
245
+ void RelayTransaction (const uint256& txid, const uint256& wtxid) override ;
246
246
void SetBestHeight (int height) override { m_best_height = height; };
247
247
void Misbehaving (const NodeId pnode, const int howmuch, const std::string& message) override ;
248
248
void ProcessMessage (CNode& pfrom, const std::string& msg_type, CDataStream& vRecv,
@@ -964,7 +964,7 @@ void PeerManagerImpl::ReattemptInitialBroadcast(CScheduler& scheduler)
964
964
965
965
if (tx != nullptr ) {
966
966
LOCK (cs_main);
967
- RelayTransaction (txid, tx->GetWitnessHash (), m_connman );
967
+ RelayTransaction (txid, tx->GetWitnessHash ());
968
968
} else {
969
969
m_mempool.RemoveUnbroadcastTx (txid, true );
970
970
}
@@ -1465,9 +1465,9 @@ void PeerManagerImpl::SendPings()
1465
1465
for (auto & it : m_peer_map) it.second ->m_ping_queued = true ;
1466
1466
}
1467
1467
1468
- void PeerManagerImpl::RelayTransaction (const uint256& txid, const uint256& wtxid, const CConnman& connman )
1468
+ void PeerManagerImpl::RelayTransaction (const uint256& txid, const uint256& wtxid)
1469
1469
{
1470
- connman .ForEachNode ([&txid, &wtxid](CNode* pnode) EXCLUSIVE_LOCKS_REQUIRED (::cs_main) {
1470
+ m_connman .ForEachNode ([&txid, &wtxid](CNode* pnode) EXCLUSIVE_LOCKS_REQUIRED (::cs_main) {
1471
1471
AssertLockHeld (::cs_main);
1472
1472
1473
1473
CNodeState* state = State (pnode->GetId ());
@@ -2047,7 +2047,7 @@ void PeerManagerImpl::ProcessOrphanTx(std::set<uint256>& orphan_work_set)
2047
2047
2048
2048
if (result.m_result_type == MempoolAcceptResult::ResultType::VALID) {
2049
2049
LogPrint (BCLog::MEMPOOL, " accepted orphan tx %s\n " , orphanHash.ToString ());
2050
- RelayTransaction (orphanHash, porphanTx->GetWitnessHash (), m_connman );
2050
+ RelayTransaction (orphanHash, porphanTx->GetWitnessHash ());
2051
2051
m_orphanage.AddChildrenToWorkSet (*porphanTx, orphan_work_set);
2052
2052
m_orphanage.EraseTx (orphanHash);
2053
2053
for (const CTransactionRef& removedTx : result.m_replaced_transactions .value ()) {
@@ -3051,7 +3051,7 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type,
3051
3051
LogPrintf (" Not relaying non-mempool transaction %s from forcerelay peer=%d\n " , tx.GetHash ().ToString (), pfrom.GetId ());
3052
3052
} else {
3053
3053
LogPrintf (" Force relaying tx %s from peer=%d\n " , tx.GetHash ().ToString (), pfrom.GetId ());
3054
- RelayTransaction (tx.GetHash (), tx.GetWitnessHash (), m_connman );
3054
+ RelayTransaction (tx.GetHash (), tx.GetWitnessHash ());
3055
3055
}
3056
3056
}
3057
3057
return ;
@@ -3066,7 +3066,7 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type,
3066
3066
// requests for it.
3067
3067
m_txrequest.ForgetTxHash (tx.GetHash ());
3068
3068
m_txrequest.ForgetTxHash (tx.GetWitnessHash ());
3069
- RelayTransaction (tx.GetHash (), tx.GetWitnessHash (), m_connman );
3069
+ RelayTransaction (tx.GetHash (), tx.GetWitnessHash ());
3070
3070
m_orphanage.AddChildrenToWorkSet (tx, peer->m_orphan_work_set );
3071
3071
3072
3072
pfrom.nLastTXTime = GetTime ();
0 commit comments