aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.cpp6
-rw-r--r--src/net.cpp4
-rw-r--r--src/net.h6
3 files changed, 8 insertions, 8 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 5e39c31bd0..98457d31e3 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -5510,7 +5510,7 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
vInvWait.reserve(pto->vInventoryToSend.size());
BOOST_FOREACH(const CInv& inv, pto->vInventoryToSend)
{
- if (pto->setInventoryKnown.contains(inv.hash))
+ if (pto->filterInventoryKnown.contains(inv.hash))
continue;
// trickle out tx inv to protect privacy
@@ -5531,9 +5531,9 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
}
}
- if (!pto->setInventoryKnown.contains(inv.hash))
+ if (!pto->filterInventoryKnown.contains(inv.hash))
{
- pto->setInventoryKnown.insert(inv.hash);
+ pto->filterInventoryKnown.insert(inv.hash);
vInv.push_back(inv);
if (vInv.size() >= 1000)
{
diff --git a/src/net.cpp b/src/net.cpp
index fc8fa30eee..59c0faac2c 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -2342,7 +2342,7 @@ unsigned int SendBufferSize() { return 1000*GetArg("-maxsendbuffer", DEFAULT_MAX
CNode::CNode(SOCKET hSocketIn, const CAddress& addrIn, const std::string& addrNameIn, bool fInboundIn) :
ssSend(SER_NETWORK, INIT_PROTO_VERSION),
addrKnown(5000, 0.001),
- setInventoryKnown(50000, 0.000001)
+ filterInventoryKnown(50000, 0.000001)
{
nServices = 0;
hSocket = hSocketIn;
@@ -2369,7 +2369,7 @@ CNode::CNode(SOCKET hSocketIn, const CAddress& addrIn, const std::string& addrNa
nSendOffset = 0;
hashContinue = uint256();
nStartingHeight = -1;
- setInventoryKnown.reset();
+ filterInventoryKnown.reset();
fGetAddr = false;
fRelayTxes = false;
pfilter = new CBloomFilter();
diff --git a/src/net.h b/src/net.h
index 0332c07331..7f3143510d 100644
--- a/src/net.h
+++ b/src/net.h
@@ -385,7 +385,7 @@ public:
std::set<uint256> setKnown;
// inventory based relay
- CRollingBloomFilter setInventoryKnown;
+ CRollingBloomFilter filterInventoryKnown;
std::vector<CInv> vInventoryToSend;
CCriticalSection cs_inventory;
std::multimap<int64_t, CInv> mapAskFor;
@@ -493,7 +493,7 @@ public:
{
{
LOCK(cs_inventory);
- setInventoryKnown.insert(inv.hash);
+ filterInventoryKnown.insert(inv.hash);
}
}
@@ -501,7 +501,7 @@ public:
{
{
LOCK(cs_inventory);
- if (!setInventoryKnown.contains(inv.hash))
+ if (!filterInventoryKnown.contains(inv.hash))
vInventoryToSend.push_back(inv);
}
}