diff options
author | Suhas Daftuar <sdaftuar@gmail.com> | 2020-01-30 11:12:56 -0500 |
---|---|---|
committer | Suhas Daftuar <sdaftuar@gmail.com> | 2020-07-18 19:00:01 -0400 |
commit | 60f0acda713e7b9dc188aef54ef93981a93f4e44 (patch) | |
tree | aa7fd2cc1703748ff2dacdbc1d9b4ac642022b19 /src/net.h | |
parent | c7eb6b4f1fe5bd76388a023529977674534334a7 (diff) |
Just pass a hash to AddInventoryKnown
Since it's only used for transactions, there's no need to pass in an inv type.
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } } |