MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / PushInventory

Method PushInventory

src/net.h:838–848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

836 }
837
838 void PushInventory(const CInv& inv)
839 {
840 LOCK(cs_inventory);
841 if (inv.type == MSG_TX) {
842 if (!filterInventoryKnown.contains(inv.hash)) {
843 setInventoryTxToSend.insert(inv.hash);
844 }
845 } else if (inv.type == MSG_BLOCK) {
846 vInventoryBlockToSend.push_back(inv.hash);
847 }
848 }
849
850 void PushBlockHash(const uint256 &hash)
851 {

Callers 5

RelayTransactionFunction · 0.80
ProcessMessageFunction · 0.80
SendMessagesMethod · 0.80
sendrawtransactionFunction · 0.80

Calls 3

containsMethod · 0.45
insertMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected