aboutsummaryrefslogtreecommitdiff
path: root/src/checkpoints.cpp
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2016-11-02 01:49:45 +0000
committerGregory Maxwell <greg@xiph.org>2016-11-02 01:49:45 +0000
commit2082b5574cec783f4ff99941492d92e05680b293 (patch)
tree3b7d3bfdf341914649ab7a5a3fbe00749805fe41 /src/checkpoints.cpp
parentfd46136dfaf68a7046cf7b8693824d73ac6b1caf (diff)
Remove GetTotalBlocksEstimate and checkpoint tests that test nothing.
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.
Diffstat (limited to 'src/checkpoints.cpp')
-rw-r--r--src/checkpoints.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/checkpoints.cpp b/src/checkpoints.cpp
index aefddce464..d22c188c16 100644
--- a/src/checkpoints.cpp
+++ b/src/checkpoints.cpp
@@ -55,16 +55,6 @@ namespace Checkpoints {
return fWorkBefore / (fWorkBefore + fWorkAfter);
}
- int GetTotalBlocksEstimate(const CCheckpointData& data)
- {
- const MapCheckpoints& checkpoints = data.mapCheckpoints;
-
- if (checkpoints.empty())
- return 0;
-
- return checkpoints.rbegin()->first;
- }
-
CBlockIndex* GetLastCheckpoint(const CCheckpointData& data)
{
const MapCheckpoints& checkpoints = data.mapCheckpoints;