diff options
| author | Gavin Andresen <[email protected]> | 2013-08-20 15:52:49 -0700 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2013-08-20 15:52:49 -0700 |
| commit | 5250fdcc6cb32775f62e452d0c22ecc98cf3974c (patch) | |
| tree | 12a2924fb0c454a58cc83aa3cbe7e38916aba2ca /src/main.cpp | |
| parent | Merge pull request #2916 from sipa/leveldb-osxfsync (diff) | |
| parent | Performance optimization for bloom filters. (diff) | |
| download | discoin-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.cpp | 3 |
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; } |