This commit is contained in:
jl777
2018-03-25 20:36:24 +03:00
parent 4ffda01dbd
commit c0d53a6eb6
2 changed files with 12 additions and 13 deletions

View File

@@ -12,13 +12,6 @@
class CBlockIndex;
struct CCheckpointData;
struct CCheckpointData {
MapCheckpoints mapCheckpoints;
int64_t nTimeLastCheckpoint;
int64_t nTransactionsLastCheckpoint;
double fTransactionsPerDay;
};
/**
* Block-chain checkpoints are compiled-in sanity checks.
* They are updated every release or three.
@@ -28,6 +21,12 @@ namespace Checkpoints
typedef std::map<int, uint256> MapCheckpoints;
struct CCheckpointData {
MapCheckpoints mapCheckpoints;
int64_t nTimeLastCheckpoint;
int64_t nTransactionsLastCheckpoint;
double fTransactionsPerDay;
};
bool CheckBlock(const CCheckpointData& data, int nHeight, const uint256& hash);