aboutsummaryrefslogtreecommitdiff
path: root/src/checkpoints.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-06-10 10:29:44 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-06-10 10:33:12 +0200
commit8d9f0a60698e951ab1070432230c14e6fcbbfbf4 (patch)
tree0c93804bef5e2c7c130abb8e831209519ef03122 /src/checkpoints.cpp
parent9c93ee5ceb6001345a813ff2974b8d2692028037 (diff)
parentdce8360e44d5330cc9f9d09c9b09ac9237237204 (diff)
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 2024486139..87f4ad7f2e 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)