diff options
| author | jtimon <[email protected]> | 2014-08-31 21:32:23 +0200 |
|---|---|---|
| committer | jtimon <[email protected]> | 2014-10-10 11:00:59 +0200 |
| commit | e11712df7ea5e946c5ec008d1c761187b495f872 (patch) | |
| tree | ff134f106e1dddf80454ce6feff6019aaaeae82c /src/checkpoints.h | |
| parent | qt: add network-specific style object (diff) | |
| download | discoin-e11712df7ea5e946c5ec008d1c761187b495f872.tar.xz discoin-e11712df7ea5e946c5ec008d1c761187b495f872.zip | |
Move checkpoint data selection to chainparams
Diffstat (limited to 'src/checkpoints.h')
| -rw-r--r-- | src/checkpoints.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/checkpoints.h b/src/checkpoints.h index fca046559..b5b620fa6 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); |