aboutsummaryrefslogtreecommitdiff
path: root/src/test/bloom_tests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Only use randomly created nonces in CRollingBloomFilter.Pieter Wuille2015-07-271-3/+3
|
* Make CRollingBloomFilter set nTweak for youPeter Todd2015-07-271-3/+3
| | | | | | | | | | | | While CBloomFilter is usually used with an explicitly set nTweak, CRollingBloomFilter is only used internally. Requiring every caller to set nTweak is error-prone and redundant; better to have the class handle that for you with a high-quality randomness source. Additionally when clearing the filter it makes sense to change nTweak as well to recover from a bad setting, e.g. due to insufficient randomness at initialization, so the clear() method is replaced by a reset() method that sets a new, random, nTweak value.
* Rolling bloom filter classGavin Andresen2015-04-301-0/+78
| | | | | | | For when you need to keep track of the last N items you've seen, and can tolerate some false-positives. Rebased-by: Pieter Wuille <[email protected]>
* tests: add a BasicTestingSetup and apply to all testsWladimir J. van der Laan2015-03-121-1/+2
| | | | | | | | Make sure that chainparams and logging is properly initialized. Doing this for every test may be overkill, but this initialization is so simple that that does not matter. This should fix the travis issues.
* Merge pull request #5513Wladimir J. van der Laan2015-01-061-1/+0
|\ | | | | | | | | | | 856e862 namespace: drop most boost namespaces and a few header cleanups (Cory Fields) 9b1ab86 namespace: drop boost::assign altogether here (Cory Fields) a324199 namespace: remove boost namespace pollution (Cory Fields)
| * namespace: drop most boost namespaces and a few header cleanupsCory Fields2015-01-021-1/+0
| | | | | | | | A few boost::asio were left around because they're very wordy otherwise.
* | String conversions uint256 -> uint256SWladimir J. van der Laan2015-01-051-29/+29
|/ | | | | | | If uint256() constructor takes a string, uint256(0) will become dangerous when uint256 does not take integers anymore (it will go through std::string(const char*) making a NULL string, and the explicit keyword is no help).
* Remove references to X11 licenceMichael Ford2014-12-161-1/+1
|
* Move CMerkleBlock and CPartialMerkleTree to their own fileMatt Corallo2014-12-051-1/+3
|
* Separate protocol versioning from clientversionCory Fields2014-10-291-0/+1
|
* Fixes for missing boost tuple.hpp header include.randy-waterhouse2014-10-211-0/+1
|
* CBloomFilter::clear() methodTom Harding2014-07-211-0/+4
|
* Revert "CBloomFilter::clear() method"Wladimir J. van der Laan2014-07-211-4/+0
| | | | This reverts commit 8fbf03995df9a2003be603be1a930bc3373d56e0.
* test/bloom_tests: Use UL suffix for unsigned long number to ensure compatibilityLuke Dashjr2014-07-071-1/+1
|
* CBloomFilter::clear() methodTom Harding2014-06-271-0/+4
|
* Code simplifications after CTransaction::GetHash() cachingPieter Wuille2014-06-221-13/+13
|
* Add licenses for tests and test dataWladimir J. van der Laan2014-03-181-0/+4
| | | | | | | | - Add license headers to source files (years based on commit dates) in `src/test` as well as `qa` - Add `README.md` to `src/test/data` specifying MIT license Fixes #3848
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-5/+9
| | | | | | | | | Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
* CSecret/CKey -> CKey/CPubKey split/refactorPieter Wuille2013-05-301-6/+5
|
* Add nFlags to CBloomFilter to make filter updating optional.Matt Corallo2013-01-161-22/+118
|
* Use CPartialMerkleTree for CMerkleBlock transactions.Matt Corallo2013-01-161-57/+78
|
* Add a nTweak to bloom filters to tweak the seed.Matt Corallo2013-01-161-20/+48
|
* Add test cases for CMerkleBlock and CBloomFilter.Matt Corallo2013-01-161-0/+302