aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2013-08-18 20:21:06 -0700
committerGregory Maxwell <greg@xiph.org>2013-08-20 02:27:26 -0700
commit37c6389c5a0ca63ae3573440ecdfe95d28ad8f07 (patch)
tree51ef4367b16dc75bd60d4de0da261b65cebf4f2d /src/net.h
parent4bc9a192696273c88966c39debf8d17f16ebe471 (diff)
downloadbitcoin-37c6389c5a0ca63ae3573440ecdfe95d28ad8f07.tar.xz
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.
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h2
1 files changed, 1 insertions, 1 deletions
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)