aboutsummaryrefslogtreecommitdiff
path: root/src/checkpoints.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2015-06-10 10:29:44 +0200
committerWladimir J. van der Laan <[email protected]>2015-06-10 10:33:12 +0200
commit8d9f0a60698e951ab1070432230c14e6fcbbfbf4 (patch)
tree0c93804bef5e2c7c130abb8e831209519ef03122 /src/checkpoints.cpp
parentMerge pull request #6222 (diff)
parentReduce checkpoints' effect on consensus. (diff)
downloaddiscoin-8d9f0a60698e951ab1070432230c14e6fcbbfbf4.tar.xz
discoin-8d9f0a60698e951ab1070432230c14e6fcbbfbf4.zip
Merge pull request #5927
dce8360 Reduce checkpoints' effect on consensus. (Pieter Wuille)
Diffstat (limited to 'src/checkpoints.cpp')
-rw-r--r--src/checkpoints.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/checkpoints.cpp b/src/checkpoints.cpp
index 202448613..87f4ad7f2 100644
--- a/src/checkpoints.cpp
+++ b/src/checkpoints.cpp
@@ -24,15 +24,6 @@ namespace Checkpoints {
*/
static const double SIGCHECK_VERIFICATION_FACTOR = 5.0;
- bool CheckBlock(const CCheckpointData& data, int nHeight, const uint256& hash)
- {
- const MapCheckpoints& checkpoints = data.mapCheckpoints;
-
- MapCheckpoints::const_iterator i = checkpoints.find(nHeight);
- if (i == checkpoints.end()) return true;
- return hash == i->second;
- }
-
//! Guess how far we are in the verification process at the given block index
double GuessVerificationProgress(const CCheckpointData& data, CBlockIndex *pindex, bool fSigchecks) {
if (pindex==NULL)