aboutsummaryrefslogtreecommitdiff
path: root/src/checkpoints.h
diff options
context:
space:
mode:
authorjtimon <jtimon@blockstream.io>2014-08-31 21:32:23 +0200
committerjtimon <jtimon@blockstream.io>2014-10-10 11:00:59 +0200
commite11712df7ea5e946c5ec008d1c761187b495f872 (patch)
treeff134f106e1dddf80454ce6feff6019aaaeae82c /src/checkpoints.h
parent6de50c3c9a89e72f3152a1df7775572d5c8ad0e7 (diff)
Move checkpoint data selection to chainparams
Diffstat (limited to 'src/checkpoints.h')
-rw-r--r--src/checkpoints.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/checkpoints.h b/src/checkpoints.h
index fca046559a..b5b620fa6b 100644
--- a/src/checkpoints.h
+++ b/src/checkpoints.h
@@ -5,16 +5,26 @@
#ifndef BITCOIN_CHECKPOINT_H
#define BITCOIN_CHECKPOINT_H
+#include "uint256.h"
+
#include <map>
class CBlockIndex;
-class uint256;
/** Block-chain checkpoints are compiled-in sanity checks.
* They are updated every release or three.
*/
namespace Checkpoints
{
+typedef std::map<int, uint256> MapCheckpoints;
+
+struct CCheckpointData {
+ const MapCheckpoints *mapCheckpoints;
+ int64_t nTimeLastCheckpoint;
+ int64_t nTransactionsLastCheckpoint;
+ double fTransactionsPerDay;
+};
+
// Returns true if block passes checkpoint checks
bool CheckBlock(int nHeight, const uint256& hash);