diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2015-04-22 18:19:11 -0400 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2015-04-30 23:14:48 -0400 |
commit | 11982d366df0301b8ceb6e9ec5bdc5a713be9ff0 (patch) | |
tree | dfa369ef18c30da6225ea06dede31c0c8bd3ff87 /src/checkpoints.h | |
parent | 699682304f8f81035fed0c8644a364b7b1b25912 (diff) |
checkpoints: Decouple checkpoints from Params
Pass checkpoint data in as necessary
Diffstat (limited to 'src/checkpoints.h')
-rw-r--r-- | src/checkpoints.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/checkpoints.h b/src/checkpoints.h index 9cccf4228a..b6e2c5acaf 100644 --- a/src/checkpoints.h +++ b/src/checkpoints.h @@ -27,15 +27,15 @@ struct CCheckpointData { }; //! Returns true if block passes checkpoint checks -bool CheckBlock(int nHeight, const uint256& hash); +bool CheckBlock(const CCheckpointData& data, int nHeight, const uint256& hash); //! Return conservative estimate of total number of blocks, 0 if unknown -int GetTotalBlocksEstimate(); +int GetTotalBlocksEstimate(const CCheckpointData& data); //! Returns last CBlockIndex* in mapBlockIndex that is a checkpoint -CBlockIndex* GetLastCheckpoint(); +CBlockIndex* GetLastCheckpoint(const CCheckpointData& data); -double GuessVerificationProgress(CBlockIndex* pindex, bool fSigchecks = true); +double GuessVerificationProgress(const CCheckpointData& data, CBlockIndex* pindex, bool fSigchecks = true); extern bool fEnabled; |