MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / GetTotalBlocksEstimate

Function GetTotalBlocksEstimate

src/checkpoints.cpp:66–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 }
65
66 int GetTotalBlocksEstimate(const CCheckpointData& data)
67 {
68 const MapCheckpoints& checkpoints = data.mapCheckpoints;
69
70 if (checkpoints.empty())
71 return 0;
72
73 return checkpoints.rbegin()->first;
74 }
75
76 CBlockIndex* GetLastCheckpoint(const CCheckpointData& data)
77 {

Callers 3

IsInitialBlockDownloadFunction · 0.85
ActivateBestChainFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68