Just pass a hash to AddInventoryKnown

Since it's only used for transactions, there's no need to pass in an inv type.
This commit is contained in:
Suhas Daftuar
2020-01-30 11:12:56 -05:00
parent c7eb6b4f1f
commit 60f0acda71
2 changed files with 11 additions and 11 deletions

View File

@@ -965,11 +965,11 @@ public:
}
void AddInventoryKnown(const CInv& inv)
void AddInventoryKnown(const uint256& hash)
{
if (m_tx_relay != nullptr) {
LOCK(m_tx_relay->cs_tx_inventory);
m_tx_relay->filterInventoryKnown.insert(inv.hash);
m_tx_relay->filterInventoryKnown.insert(hash);
}
}