@@ -629,8 +629,6 @@ class PeerManagerImpl final : public PeerManager
629629 void PushInventory (NodeId nodeid, const CInv& inv) override EXCLUSIVE_LOCKS_REQUIRED(!m_peer_mutex);
630630 void RelayInv (const CInv& inv) override EXCLUSIVE_LOCKS_REQUIRED(!m_peer_mutex);
631631 void RelayInv (const CInv& inv, const int minProtoVersion) override EXCLUSIVE_LOCKS_REQUIRED(!m_peer_mutex);
632- void RelayInvFiltered (const CInv& inv, const CTransaction& relatedTx, const int minProtoVersion) override EXCLUSIVE_LOCKS_REQUIRED(!m_peer_mutex);
633- void RelayInvFiltered (const CInv& inv, const uint256& relatedTxHash, const int minProtoVersion) override EXCLUSIVE_LOCKS_REQUIRED(!m_peer_mutex);
634632 void RelayTransaction (const uint256& txid) override EXCLUSIVE_LOCKS_REQUIRED(!m_peer_mutex);
635633 void RelayRecoveredSig (const uint256& sigHash) override EXCLUSIVE_LOCKS_REQUIRED(!m_peer_mutex);
636634 void RelayDSQ (const CCoinJoinQueue& queue) override EXCLUSIVE_LOCKS_REQUIRED(!m_peer_mutex);
@@ -645,10 +643,21 @@ class PeerManagerImpl final : public PeerManager
645643 void RequestObject (NodeId nodeid, const CInv& inv, std::chrono::microseconds current_time,
646644 bool fForce = false ) override EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
647645 size_t GetRequestedObjectCount (NodeId nodeid) const override EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
648- void AskPeersForTransaction (const uint256& txid) override EXCLUSIVE_LOCKS_REQUIRED(!m_peer_mutex);
649646private:
650647 void _RelayTransaction (const uint256& txid) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
651648
649+ /* * Ask peers that have a transaction in their inventory to relay it to us. */
650+ void AskPeersForTransaction (const uint256& txid) EXCLUSIVE_LOCKS_REQUIRED(!m_peer_mutex);
651+
652+ /* * Relay inventories to peers that find it relevant */
653+ void RelayInvFiltered (const CInv& inv, const CTransaction& relatedTx, const int minProtoVersion) EXCLUSIVE_LOCKS_REQUIRED(!m_peer_mutex);
654+
655+ /* *
656+ * This overload will not update node filters, use it only for the cases
657+ * when other messages will update related transaction data in filters
658+ */
659+ void RelayInvFiltered (const CInv& inv, const uint256& relatedTxHash, const int minProtoVersion) EXCLUSIVE_LOCKS_REQUIRED(!m_peer_mutex);
660+
652661 /* * Helper to process result of external handlers of message */
653662 void PostProcessMessage (MessageProcessingResult&& ret, NodeId node) override EXCLUSIVE_LOCKS_REQUIRED(!m_peer_mutex);
654663
0 commit comments