| 1152 | } |
| 1153 | |
| 1154 | static void AddKnownTx(Peer& peer, const uint256& hash) |
| 1155 | { |
| 1156 | auto tx_relay = peer.GetTxRelay(); |
| 1157 | if (!tx_relay) return; |
| 1158 | |
| 1159 | LOCK(tx_relay->m_tx_inventory_mutex); |
| 1160 | tx_relay->m_tx_inventory_known_filter.insert(hash); |
| 1161 | } |
| 1162 | |
| 1163 | /** Whether this peer can serve us blocks. */ |
| 1164 | static bool CanServeBlocks(const Peer& peer) |
no test coverage detected