aboutsummaryrefslogtreecommitdiff
path: root/src/checkpoints.cpp
AgeCommit message (Collapse)Author
2015-05-13Reduce checkpoints' effect on consensus.Pieter Wuille
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.
2015-05-06Merge pull request #6055Wladimir J. van der Laan
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)
2015-05-02Non-grammatical language improvementsLuke Dashjr
2015-04-30checkpoints: move the checkpoints enable boolean into mainCory Fields
This pertains to app-state, so it doesn't make sense to handle inside the checkpoint functions.
2015-04-30checkpoints: Decouple checkpoints from ParamsCory Fields
Pass checkpoint data in as necessary
2015-04-30checkpoints: store mapCheckpoints in CCheckpointData rather than a pointerCory Fields
2014-12-19Added "Core" to copyright headerssandakersmann
Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
2014-11-21Convert remaining comments in /src to doxygen formatMichael Ford
- 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
2014-10-10Move checkpoint data selection to chainparamsjtimon
2014-10-02Switch testing framework from MAIN to new UNITTEST networkSergioDemianLerner
UNITTEST inherites from MAIN but allows synamically changing its parameters using the ModifiableParams() interface
2014-10-02Revert merge of pull #4845Wladimir J. van der Laan
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.
2014-09-29Switch testing framework from MAIN to new UNITTEST networkSergioDemianLerner
UNITTEST inherites from MAIN but allows synamically changing its parameters using the ModifiableParams() interface
2014-09-04Introduce BlockMap type for mapBlockIndexPieter Wuille
2014-09-04checkpoints.cpp depends on main, it can use mapBlockIndex directlyPieter Wuille
2014-07-28Merge pull request #4541Wladimir J. van der Laan
125fba1 Add a new checkpoint at block 295,000 (Trevin Hofmann)
2014-07-15Add a new checkpoint at block 295,000Trevin Hofmann
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.
2014-07-07Use GetBlockTime() morejtimon
2014-06-26ensure clean and consistent "namespace" usagePhilip Kaufmann
- remove some missplaced ; - ensure end of a namespace is clearly visible - use same formatting when using namespace
2014-06-25Remove unnecessary dependencies for bitcoin-cliWladimir J. van der Laan
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.
2014-05-13Fix incorrect checkpoint data for testnet3David Hill
2014-04-02[Qt] rescan progressCozz Lovan
2014-01-18Add a new checkpoint at block 279,000Micha
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.
2013-11-10Cleanup code using forward declarations.Brandon Dahler
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.
2013-10-20Bump Year Number to 2013super3
2013-08-20Checkpoint at block 250,000Gavin Andresen
2013-07-23Don't use checkpoints and accept nonstd txn on -regtestMatt Corallo
2013-06-19Introduce a CChainParameters singleton class and regtest mode.Mike Hearn
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.
2013-05-24Replace repeated GetBoolArg() calls with Checkpoint::fEnabled variableJeff Garzik
set once at init time.
2013-04-04Update transaction statisticsPieter Wuille
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.
2013-03-17Checkpoint at first block in 11 March chain forkGavin Andresen
2013-02-16Transactions-based verification progressPieter Wuille
2013-01-30New checkpoint at block 216116 for the 0.8.0 releaseGavin Andresen
2012-12-13Merge pull request #2087 from gavinandresen/check210000Pieter Wuille
Checkpoint at first 25-btc-reward block (210,000)
2012-12-10Checkpoint at first 25-btc-reward block (210,000)Gavin Andresen
2012-11-28New 'checkpoints' option should default to true.Jeff Garzik
2012-11-28Add "checkpoints" option, to permit disabling of checkpoint logic.Jeff Garzik
2012-08-21Checkpoint at block 193,000Gavin Andresen
2012-06-25Checkpoint at block 185333 (and remove a couple of intermediate checkpoints)Gavin Andresen
2012-05-25Add a testnet checkpoint at block 546Gavin Andresen
2012-05-18Update License in File HeadersFordy
I originally created a pull to replace the "COPYING" in crypter.cpp and crypter.h, but it turned out that COPYING was actually the correct file.
2012-04-17Remove headers.hPieter Wuille
2012-02-23Checkpoint block 168,000Gavin Andresen
2012-02-07Update all copyrights to 2012Gavin Andresen
2012-01-12Compile with extra warnings turned on. And more makefile/code tidying up.Gavin Andresen
This turns on most gcc warnings, and removes some unused variables and other code that triggers warnings. Exceptions are: -Wno-sign-compare : triggered by lots of comparisons of signed integer to foo.size(), which is unsigned. -Wno-char-subscripts : triggered by the convert-to-hex functions (I may fix this in a future commit).
2011-12-21Revert "Use standard C99 (and Qt) types for 64-bit integers"Wladimir J. van der Laan
This reverts commit 21d9f36781604e4ca9fc35dc65265593423b73e9.
2011-12-20Use standard C99 (and Qt) types for 64-bit integersLuke Dashjr
2011-12-01Orphan block fill-up-memory attack preventionGavin Andresen
2011-12-01Moved checkpoints out of main, to prep for using them to help prevent DoS ↵Gavin Andresen
attacks