aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2020-01-30 11:12:56 -0500
committerSuhas Daftuar <sdaftuar@gmail.com>2020-07-18 19:00:01 -0400
commit60f0acda713e7b9dc188aef54ef93981a93f4e44 (patch)
treeaa7fd2cc1703748ff2dacdbc1d9b4ac642022b19 /src/net.h
parentc7eb6b4f1fe5bd76388a023529977674534334a7 (diff)
downloadbitcoin-60f0acda713e7b9dc188aef54ef93981a93f4e44.tar.xz
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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net.h b/src/net.h
index b240e52a18..d4d5ba59dc 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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);
}
}