aboutsummaryrefslogtreecommitdiff
path: root/src/test/Checkpoints_tests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|
* chainparams: move CCheckpointData into chainparams.hCory Fields2015-07-281-1/+1
| | | | | This unties CChainParams from its dependency on checkpoints. Instead, now it only depends on the raw checkpoint data.
* Reduce checkpoints' effect on consensus.Pieter Wuille2015-05-131-15/+1
| | | | | | | | | | | | | Instead of only checking height to decide whether to disable script checks, actually check whether a block is an ancestor of a checkpoint, up to which headers have been validated. This means that we don't have to prevent accepting a side branch anymore - it will be safe, just less fast to do. We still need to prevent being fed a multitude of low-difficulty headers filling up our memory. The mechanism for that is unchanged for now: once a checkpoint is reached with headers, no headers chain branching off before that point are allowed anymore.
* checkpoints: Decouple checkpoints from ParamsCory Fields2015-04-301-7/+9
| | | | Pass checkpoint data in as necessary
* 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.
* String conversions uint256 -> uint256SWladimir J. van der Laan2015-01-051-2/+2
| | | | | | | 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
|
* 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/+5
| | | | | | | | | 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.
* Checkpoint at block 185333 (and remove a couple of intermediate checkpoints)Gavin Andresen2012-06-251-7/+7
|
* Moved checkpoints out of main, to prep for using them to help prevent DoS ↵Gavin Andresen2011-12-011-0/+34
attacks