aboutsummaryrefslogtreecommitdiff
path: root/src/checkpoints.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headers to 2018DrahtBot2018-07-271-1/+1
|
* Add LookupBlockIndex functionJoão Barbosa2018-03-061-3/+4
|
* Increment MIT Licence copyright header year on files modified in 2017Akira Takizawa2018-01-031-1/+1
|
* Remove includes in .cpp files for things the corresponding .h file already ↵practicalswift2017-11-161-1/+0
| | | | included
* scripted-diff: Replace #include "" with #include <> (ryanofsky)MeshCollider2017-11-161-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -BEGIN VERIFY SCRIPT- for f in \ src/*.cpp \ src/*.h \ src/bench/*.cpp \ src/bench/*.h \ src/compat/*.cpp \ src/compat/*.h \ src/consensus/*.cpp \ src/consensus/*.h \ src/crypto/*.cpp \ src/crypto/*.h \ src/crypto/ctaes/*.h \ src/policy/*.cpp \ src/policy/*.h \ src/primitives/*.cpp \ src/primitives/*.h \ src/qt/*.cpp \ src/qt/*.h \ src/qt/test/*.cpp \ src/qt/test/*.h \ src/rpc/*.cpp \ src/rpc/*.h \ src/script/*.cpp \ src/script/*.h \ src/support/*.cpp \ src/support/*.h \ src/support/allocators/*.h \ src/test/*.cpp \ src/test/*.h \ src/wallet/*.cpp \ src/wallet/*.h \ src/wallet/test/*.cpp \ src/wallet/test/*.h \ src/zmq/*.cpp \ src/zmq/*.h do base=${f%/*}/ relbase=${base#src/} sed -i "s:#include \"\(.*\)\"\(.*\):if test -e \$base'\\1'; then echo \"#include <\"\$relbase\"\\1>\\2\"; else echo \"#include <\\1>\\2\"; fi:e" $f done -END VERIFY SCRIPT-
* scripted-diff: Use the C++11 keyword nullptr to denote the pointer literal ↵practicalswift2017-08-071-1/+1
| | | | | | | | | | | | | instead of the macro NULL -BEGIN VERIFY SCRIPT- sed -i 's/\<NULL\>/nullptr/g' src/*.cpp src/*.h src/*/*.cpp src/*/*.h src/qt/*/*.cpp src/qt/*/*.h src/wallet/*/*.cpp src/wallet/*/*.h src/support/allocators/*.h sed -i 's/Prefer nullptr, otherwise SAFECOOKIE./Prefer NULL, otherwise SAFECOOKIE./g' src/torcontrol.cpp sed -i 's/tor: Using nullptr authentication/tor: Using NULL authentication/g' src/torcontrol.cpp sed -i 's/METHODS=nullptr/METHODS=NULL/g' src/test/torcontrol_tests.cpp src/torcontrol.cpp sed -i 's/nullptr certificates/NULL certificates/g' src/qt/paymentserver.cpp sed -i 's/"nullptr"/"NULL"/g' src/torcontrol.cpp src/test/torcontrol_tests.cpp -END VERIFY SCRIPT-
* scripted-diff: Remove #include <boost/foreach.hpp>Jorge Timón2017-06-221-1/+0
| | | | | | -BEGIN VERIFY SCRIPT- sed -i ':a;N;$!ba;s/#include <boost\/foreach.hpp>\n//' ./src/*.h ./src/*.cpp ./src/*/*.h ./src/*/*.cpp ./src/*/*/*.h ./src/*/*/*.cpp -END VERIFY SCRIPT-
* scripted-diff: Remove BOOST_REVERSE_FOREACHJorge Timón2017-06-221-1/+1
| | | | | | -BEGIN VERIFY SCRIPT- sed -i 's/BOOST_REVERSE_FOREACH(\(.*\), \(.*\))/for (\1 : reverse_iterate(\2))/' ./src/*.h ./src/*.cpp ./src/*/*.h ./src/*/*.cpp ; -END VERIFY SCRIPT-
* Introduce src/reverse_iterator.hpp and include it...Jorge Timón2017-06-221-0/+1
| | | | | | | ...where it will be needed Taken from https://gist.github.com/arvidsson/7231973 with small modifications to fit the bitcoin core project
* [MOVEONLY] Move progress estimation out of checkpointsPieter Wuille2017-01-041-40/+0
|
* Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
| | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* Rename the remaining main.{h,cpp} to validation.{h,cpp}Matt Corallo2016-12-021-1/+1
|
* Remove GetTotalBlocksEstimate and checkpoint tests that test nothing.Gregory Maxwell2016-11-021-10/+0
| | | | | | | | GetTotalBlocksEstimate is no longer used and it was the only thing the checkpoint tests were testing. Since checkpoints are on their way out it makes more sense to remove the test file than to cook up a new pointless test.
* Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|
* TRIVIAL: Missing includesJorge Timón2015-07-231-0/+1
|
* Reduce checkpoints' effect on consensus.Pieter Wuille2015-05-131-9/+0
| | | | | | | | | | | | | 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.
* Merge pull request #6055Wladimir J. van der Laan2015-05-061-19/+9
|\ | | | | | | | | | | | | a8cdaf5 checkpoints: move the checkpoints enable boolean into main (Cory Fields) 11982d3 checkpoints: Decouple checkpoints from Params (Cory Fields) 6996823 checkpoints: make checkpoints a member of CChainParams (Cory Fields) 9f13a10 checkpoints: store mapCheckpoints in CCheckpointData rather than a pointer (Cory Fields)
| * checkpoints: move the checkpoints enable boolean into mainCory Fields2015-04-301-11/+3
| | | | | | | | | | This pertains to app-state, so it doesn't make sense to handle inside the checkpoint functions.
| * checkpoints: Decouple checkpoints from ParamsCory Fields2015-04-301-9/+7
| | | | | | | | Pass checkpoint data in as necessary
| * checkpoints: store mapCheckpoints in CCheckpointData rather than a pointerCory Fields2015-04-301-3/+3
| |
* | Non-grammatical language improvementsLuke Dashjr2015-05-021-3/+4
|/
* Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* Convert remaining comments in /src to doxygen formatMichael Ford2014-11-211-7/+9
| | | | | | | | | | - Update comments in checkpoints to be doxygen compatible - Update comments in checkqueue to be doxygen compatible - Update coins to be doxygen compatible - Fix comment typo in crypter.h - Update licenses/copyright dates Closes #5325 #5184 #5183 #5182
* Move checkpoint data selection to chainparamsjtimon2014-10-101-76/+5
|
* Switch testing framework from MAIN to new UNITTEST networkSergioDemianLerner2014-10-021-0/+2
| | | | UNITTEST inherites from MAIN but allows synamically changing its parameters using the ModifiableParams() interface
* Revert merge of pull #4845Wladimir J. van der Laan2014-10-021-2/+0
| | | | | | | | | | | It breaks the new mingw tests! See - https://travis-ci.org/bitcoin/bitcoin/jobs/36845581 - https://travis-ci.org/bitcoin/bitcoin/jobs/36845582 This reverts commit 470590277782cce2fe73275c74523aef59a51eab, 5e2e7fcb99738d9254d4030d53e4f711b2fc5ee0, a25fd6be138ff2bff7e2ad6a1a789db523c0193f.
* Switch testing framework from MAIN to new UNITTEST networkSergioDemianLerner2014-09-291-0/+2
| | | | UNITTEST inherites from MAIN but allows synamically changing its parameters using the ModifiableParams() interface
* Introduce BlockMap type for mapBlockIndexPieter Wuille2014-09-041-1/+1
|
* checkpoints.cpp depends on main, it can use mapBlockIndex directlyPieter Wuille2014-09-041-1/+1
|
* Merge pull request #4541Wladimir J. van der Laan2014-07-281-2/+3
|\ | | | | | | 125fba1 Add a new checkpoint at block 295,000 (Trevin Hofmann)
| * Add a new checkpoint at block 295,000Trevin Hofmann2014-07-151-2/+3
| | | | | | | | | | | | Block 295,000 seems to meet the criteria of a reasonable timestamp and no strange transactions. 295,000 is the current block height in the bootstrap.dat torrent provided by jgarzik.
* | Use GetBlockTime() morejtimon2014-07-071-1/+1
|/
* ensure clean and consistent "namespace" usagePhilip Kaufmann2014-06-261-3/+4
| | | | | | - remove some missplaced ; - ensure end of a namespace is clearly visible - use same formatting when using namespace
* Remove unnecessary dependencies for bitcoin-cliWladimir J. van der Laan2014-06-251-2/+2
| | | | | | | | | This commit removes all the unnecessary dependencies (key, core, netbase, sync, ...) from bitcoin-cli. To do this it shards the chain parameters into BaseParams, which contains just the RPC port and data directory (as used by utils and bitcoin-cli) and Params, with the rest.
* Fix incorrect checkpoint data for testnet3David Hill2014-05-131-2/+2
|
* [Qt] rescan progressCozz Lovan2014-04-021-2/+3
|
* Add a new checkpoint at block 279,000Micha2014-01-181-4/+5
| | | | | From a cursory glance, it looks like block 279,000 meets the criteria for a checkpoint block, and it's also what the bootstrap.dat torrent is at. This closes #3530.
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-6/+8
| | | | | | | | | 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.
* Bump Year Number to 2013super32013-10-201-1/+1
|
* Checkpoint at block 250,000Gavin Andresen2013-08-201-2/+3
|
* Don't use checkpoints and accept nonstd txn on -regtestMatt Corallo2013-07-231-2/+15
|
* Introduce a CChainParameters singleton class and regtest mode.Mike Hearn2013-06-191-2/+2
| | | | | | | | | | | | | The new class is accessed via the Params() method and holds most things that vary between main, test and regtest networks. The regtest mode has two purposes, one is to run the bitcoind/bitcoinj comparison tool which compares two separate implementations of the Bitcoin protocol looking for divergence. The other is that when run, you get a local node which can mine a single block instantly, which is highly convenient for testing apps during development as there's no need to wait 10 minutes for a block on the testnet.
* Replace repeated GetBoolArg() calls with Checkpoint::fEnabled variableJeff Garzik2013-05-241-3/+5
| | | | set once at init time.
* Update transaction statisticsPieter Wuille2013-04-041-8/+8
| | | | | | | | As these were not updated when 'backporting' the 225430 checkpoint into head. Additionally, also report verification progress in debug.log, and tweak the sigcheck-verification-speed-factor a bit.
* Checkpoint at first block in 11 March chain forkGavin Andresen2013-03-171-0/+1
|
* Transactions-based verification progressPieter Wuille2013-02-161-6/+69
|
* New checkpoint at block 216116 for the 0.8.0 releaseGavin Andresen2013-01-301-0/+1
|
* Merge pull request #2087 from gavinandresen/check210000Pieter Wuille2012-12-131-0/+1
|\ | | | | Checkpoint at first 25-btc-reward block (210,000)
| * Checkpoint at first 25-btc-reward block (210,000)Gavin Andresen2012-12-101-0/+1
| |
* | New 'checkpoints' option should default to true.Jeff Garzik2012-11-281-3/+3
| |