aboutsummaryrefslogtreecommitdiff
path: root/src/checkpoints.h
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2015-06-05 15:36:34 -0400
committerCory Fields <cory-nospam-@coryfields.com>2015-07-28 15:26:50 -0400
commitf0deec572b304663f5f8e93a573f414e563b353f (patch)
tree87d5d6076ecac2cfbac1412fec36ab600eaeb966 /src/checkpoints.h
parenteddaba7b5692288087a926da5733e86b47274e4e (diff)
downloadbitcoin-f0deec572b304663f5f8e93a573f414e563b353f.tar.xz
chainparams: move CCheckpointData into chainparams.h
This unties CChainParams from its dependency on checkpoints. Instead, now it only depends on the raw checkpoint data.
Diffstat (limited to 'src/checkpoints.h')
-rw-r--r--src/checkpoints.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/checkpoints.h b/src/checkpoints.h
index 001e3cc801..5fce6fa81e 100644
--- a/src/checkpoints.h
+++ b/src/checkpoints.h
@@ -10,6 +10,7 @@
#include <map>
class CBlockIndex;
+struct CCheckpointData;
/**
* Block-chain checkpoints are compiled-in sanity checks.
@@ -17,14 +18,6 @@ class CBlockIndex;
*/
namespace Checkpoints
{
-typedef std::map<int, uint256> MapCheckpoints;
-
-struct CCheckpointData {
- MapCheckpoints mapCheckpoints;
- int64_t nTimeLastCheckpoint;
- int64_t nTransactionsLastCheckpoint;
- double fTransactionsPerDay;
-};
//! Return conservative estimate of total number of blocks, 0 if unknown
int GetTotalBlocksEstimate(const CCheckpointData& data);