diff options
author | Gregory Maxwell <greg@xiph.org> | 2013-08-18 20:21:06 -0700 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2013-08-20 02:27:26 -0700 |
commit | 37c6389c5a0ca63ae3573440ecdfe95d28ad8f07 (patch) | |
tree | 51ef4367b16dc75bd60d4de0da261b65cebf4f2d /src/net.h | |
parent | 4bc9a192696273c88966c39debf8d17f16ebe471 (diff) |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |