You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

checkpoints.h 902B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright (c) 2009-2015 The Bitcoin Core developers
  2. // Distributed under the MIT software license, see the accompanying
  3. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  4. #ifndef BITCOIN_CHECKPOINTS_H
  5. #define BITCOIN_CHECKPOINTS_H
  6. #include "uint256.h"
  7. #include <map>
  8. class CBlockIndex;
  9. struct CCheckpointData;
  10. /**
  11. * Block-chain checkpoints are compiled-in sanity checks.
  12. * They are updated every release or three.
  13. */
  14. namespace Checkpoints
  15. {
  16. //! Return conservative estimate of total number of blocks, 0 if unknown
  17. int GetTotalBlocksEstimate(const CCheckpointData& data);
  18. //! Returns last CBlockIndex* in mapBlockIndex that is a checkpoint
  19. CBlockIndex* GetLastCheckpoint(const CCheckpointData& data);
  20. double GuessVerificationProgress(const CCheckpointData& data, CBlockIndex* pindex, bool fSigchecks = true);
  21. } //namespace Checkpoints
  22. #endif // BITCOIN_CHECKPOINTS_H