aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2013-08-20 15:52:49 -0700
committerGavin Andresen <[email protected]>2013-08-20 15:52:49 -0700
commit5250fdcc6cb32775f62e452d0c22ecc98cf3974c (patch)
tree12a2924fb0c454a58cc83aa3cbe7e38916aba2ca /src/main.cpp
parentMerge pull request #2916 from sipa/leveldb-osxfsync (diff)
parentPerformance optimization for bloom filters. (diff)
downloaddiscoin-5250fdcc6cb32775f62e452d0c22ecc98cf3974c.tar.xz
discoin-5250fdcc6cb32775f62e452d0c22ecc98cf3974c.zip
Merge pull request #2914 from gmaxwell/bloom_faster
Performance optimization for bloom filters.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 2ccd5131d..b62f107b4 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3893,6 +3893,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
LOCK(pfrom->cs_filter);
delete pfrom->pfilter;
pfrom->pfilter = new CBloomFilter(filter);
+ filter.UpdateEmptyFull();
}
pfrom->fRelayTxes = true;
}
@@ -3922,7 +3923,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
{
LOCK(pfrom->cs_filter);
delete pfrom->pfilter;
- pfrom->pfilter = NULL;
+ pfrom->pfilter = new CBloomFilter();
pfrom->fRelayTxes = true;
}