- 423FE692637903B32D0DAEA46D9752322A7615CE3CD3CC3CE1F6FB2BF80B8F3C5285DB91F0BE83C5AB97C951BE6A8E46BB2B1A8FA7BDCE9780FCB6E5C54E2648
+ 6228CEB19AE63BB33C33F5C235283835FAD0C84CCDFDD19257F17CB4B63210D91DBDECD67869EDB47DCC117C08B181AE5FDC247941FBA2980299450439E77F42
bitcoin/src/checkpoints.cpp
(35 . 8)(35 . 6)
58
59 bool CheckBlock(int nHeight, const uint256& hash)
60 {
61 if (fTestNet) return true; // Testnet has no checkpoints
62
63 MapCheckpoints::const_iterator i = mapCheckpoints.find(nHeight);
64 if (i == mapCheckpoints.end()) return true;
65 return hash == i->second;
(44 . 15)(42 . 11)
67
68 int GetTotalBlocksEstimate()
69 {
70 if (fTestNet) return 0;
71
72 return mapCheckpoints.rbegin()->first;
73 }
74
75 CBlockIndex* GetLastCheckpoint(const std::map<uint256, CBlockIndex*>& mapBlockIndex)
76 {
77 if (fTestNet) return NULL;
78
79 BOOST_REVERSE_FOREACH(const MapCheckpoints::value_type& i, mapCheckpoints)
80 {
81 const uint256& hash = i.second;