@@ -1710,7 +1710,7 @@ void static ProcessGetBlockData(CNode& pfrom, const CChainParams& chainparams, c
1710
1710
}
1711
1711
1712
1712
// ! Determine whether or not a peer can request a transaction, and return it (or nullptr if not found or not allowed).
1713
- CTransactionRef static FindTxForGetData (const CNode& peer, const GenTxid& gtxid, const std::chrono::seconds mempool_req, const std::chrono::seconds now) LOCKS_EXCLUDED(cs_main)
1713
+ static CTransactionRef FindTxForGetData (const CTxMemPool& mempool, const CNode& peer, const GenTxid& gtxid, const std::chrono::seconds mempool_req, const std::chrono::seconds now) LOCKS_EXCLUDED(cs_main)
1714
1714
{
1715
1715
auto txinfo = mempool.info (gtxid);
1716
1716
if (txinfo.tx ) {
@@ -1766,7 +1766,7 @@ void static ProcessGetData(CNode& pfrom, const CChainParams& chainparams, CConnm
1766
1766
continue ;
1767
1767
}
1768
1768
1769
- CTransactionRef tx = FindTxForGetData (pfrom, ToGenTxid (inv), mempool_req, now);
1769
+ CTransactionRef tx = FindTxForGetData (mempool, pfrom, ToGenTxid (inv), mempool_req, now);
1770
1770
if (tx) {
1771
1771
// WTX and WITNESS_TX imply we serialize with witness
1772
1772
int nSendFlags = (inv.IsMsgTx () ? SERIALIZE_TRANSACTION_NO_WITNESS : 0 );
@@ -2732,7 +2732,7 @@ void PeerLogicValidation::ProcessMessage(CNode& pfrom, const std::string& msg_ty
2732
2732
}
2733
2733
} else if (inv.IsGenTxMsg ()) {
2734
2734
const GenTxid gtxid = ToGenTxid (inv);
2735
- const bool fAlreadyHave = AlreadyHaveTx (gtxid, mempool );
2735
+ const bool fAlreadyHave = AlreadyHaveTx (gtxid, m_mempool );
2736
2736
LogPrint (BCLog::NET, " got inv: %s %s peer=%d\n " , inv.ToString (), fAlreadyHave ? " have" : " new" , pfrom.GetId ());
2737
2737
2738
2738
pfrom.AddKnownTx (inv.hash );
@@ -3003,7 +3003,7 @@ void PeerLogicValidation::ProcessMessage(CNode& pfrom, const std::string& msg_ty
3003
3003
3004
3004
std::list<CTransactionRef> lRemovedTxn;
3005
3005
3006
- // We do the AlreadyHave () check using wtxid, rather than txid - in the
3006
+ // We do the AlreadyHaveTx () check using wtxid, rather than txid - in the
3007
3007
// absence of witness malleation, this is strictly better, because the
3008
3008
// recent rejects filter may contain the wtxid but rarely contains
3009
3009
// the txid of a segwit transaction that has been rejected.
0 commit comments