MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / AddKnownTx

Function AddKnownTx

src/net_processing.cpp:1154–1161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1152}
1153
1154static 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. */
1164static bool CanServeBlocks(const Peer& peer)

Callers 2

ProcessInvalidTxMethod · 0.85
ProcessMessageMethod · 0.85

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected