From 37c6389c5a0ca63ae3573440ecdfe95d28ad8f07 Mon Sep 17 00:00:00 2001 From: Gregory Maxwell Date: Sun, 18 Aug 2013 20:21:06 -0700 Subject: Performance optimization for bloom filters. This reduces a peer's ability to attack network resources by using a full bloom filter, but without reducing the usability of bloom filters. It sets a default match everything filter for peers and it generalizes a prior optimization to cover more cases. --- src/net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net.h') diff --git a/src/net.h b/src/net.h index e75fe48f64..686861fbeb 100644 --- a/src/net.h +++ b/src/net.h @@ -267,7 +267,7 @@ public: nMisbehavior = 0; fRelayTxes = false; setInventoryKnown.max_size(SendBufferSize() / 1000); - pfilter = NULL; + pfilter = new CBloomFilter(); // Be shy and don't send version until we hear if (hSocket != INVALID_SOCKET && !fInbound) -- cgit v1.2.3