aboutsummaryrefslogtreecommitdiff
path: root/src/checkpoints.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2016-11-03 00:04:20 -0700
committerPieter Wuille <[email protected]>2016-11-03 00:08:59 -0700
commit508404de98a8a5435f52916cef8f328e82651961 (patch)
treed7756cd64d414858f51d77f0273f26bc4e2e4e30 /src/checkpoints.cpp
parentMerge #9036: wallet: Change default confirm target from 2 to 6 (diff)
parentIsInitialBlockDownload no longer uses header-only timestamps. (diff)
downloaddiscoin-508404de98a8a5435f52916cef8f328e82651961.tar.xz
discoin-508404de98a8a5435f52916cef8f328e82651961.zip
Merge #9053: IBD using chainwork instead of height and not using header timestamps
e141beb IsInitialBlockDownload no longer uses header-only timestamps. (Gregory Maxwell) 2082b55 Remove GetTotalBlocksEstimate and checkpoint tests that test nothing. (Gregory Maxwell) fd46136 IBD check uses minimumchain work instead of checkpoints. (Gregory Maxwell)
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 aefddce46..d22c188c1 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;