| 1725 | } |
| 1726 | |
| 1727 | void PeerManagerImpl::_RelayTransaction(const uint256& txid, const uint256& wtxid) |
| 1728 | { |
| 1729 | m_connman.ForEachNode([&txid, &wtxid](CNode* pnode) EXCLUSIVE_LOCKS_REQUIRED(::cs_main) { |
| 1730 | AssertLockHeld(::cs_main); |
| 1731 | |
| 1732 | CNodeState* state = State(pnode->GetId()); |
| 1733 | if (state == nullptr) return; |
| 1734 | if (state->m_wtxid_relay) { |
| 1735 | pnode->PushTxInventory(wtxid); |
| 1736 | } else { |
| 1737 | pnode->PushTxInventory(txid); |
| 1738 | } |
| 1739 | }); |
| 1740 | } |
| 1741 | |
| 1742 | void PeerManagerImpl::RelayAddress(NodeId originator, |
| 1743 | const CAddress& addr, |
nothing calls this directly
no test coverage detected