| 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 | { |
no test coverage detected