aboutsummaryrefslogtreecommitdiff
path: root/src/test/bloom_tests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Replace test data with Dogecoin valuesRoss Nicoll2018-09-191-1/+1
| | | | | | | | | | | | | | | | | | | Replace test data with Dogecoin equivalents in the folowing tests: * base58 * bip32 * keys * miner * pow Replace RPC and deterministic signatures in unit tests with Dogecoin values. While conventionally I'd use an alternative implementation for these, as RFC 6979 compliant signature generation isn't terribly common, and there's no reason to suspect we've modified this code, I'm going to assert that it's good enough to test that the code doesn't provide different values. Disabled Bitcoin PoW tests, but left code in place to simplify later merges. These are replaced by the Dogecoin PoW tests.
* Merge #9281: Refactor: Remove using namespace <xxx> from bench/ & test/ sourcesMarcoFalke2017-01-051-29/+27
|\ | | | | | | 73f4119 Refactoring: Removed using namespace <xxx> from bench/ and test/ source files. (Karl-Johan Alm)
| * Refactoring: Removed using namespace <xxx> from bench/ and test/ source files.Karl-Johan Alm2017-01-021-29/+27
| |
* | Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
|/ | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* Make CTransaction actually immutablePieter Wuille2016-12-021-4/+2
|
* unification of Bloom filter representationS. Matthew English2016-11-261-10/+10
| | | | | | | Output instances of "BloomFilter" changed to "Bloom filter", in accordance with Wikipedia standard notation: https://en.wikipedia.org/wiki/Bloom_filter also to sync with the majority of cases in the self-same file
* Get rid of nType and nVersionPieter Wuille2016-11-071-3/+3
| | | | | | | | | | | Remove the nType and nVersion as parameters to all serialization methods and functions. There is only one place where it's read and has an impact (in CAddress), and even there it does not impact any of the recursively invoked serializers. Instead, the few places that need nType or nVersion are changed to read it directly from the stream object, through GetType() and GetVersion() methods which are added to all stream classes.
* More efficient bitsliced rolling Bloom filterPieter Wuille2016-04-281-1/+4
| | | | | | | This patch changes the implementation from one that stores 16 2-bit integers in one uint32_t's, to one that stores the first bit of 64 2-bit integers in one uint64_t and the second bit in another. This allows for 450x faster refreshing and 2.2x faster average speed.
* Add importprunedfunds rpc callinstagibbs2016-03-231-9/+14
|
* Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|
* 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