X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fcheckpoints.h;h=9d52da404fbc78fbae92400d4212ca1d15bc02c6;hb=10fd7f66893fd62ab65f9302115834c441eb571b;hp=32094fdde620149a1c9f810b2eba861dc6f8c280;hpb=eb5fff9e16b2c3e94835cd3a8897318472df2374;p=novacoin.git diff --git a/src/checkpoints.h b/src/checkpoints.h index 32094fd..9d52da4 100644 --- a/src/checkpoints.h +++ b/src/checkpoints.h @@ -4,7 +4,11 @@ #ifndef BITCOIN_CHECKPOINT_H #define BITCOIN_CHECKPOINT_H +#include +#include "util.h" + class uint256; +class CBlockIndex; // // Block-chain checkpoints are compiled-in sanity checks. @@ -17,6 +21,9 @@ namespace Checkpoints // Return conservative estimate of total number of blocks, 0 if unknown int GetTotalBlocksEstimate(); + + // Returns last CBlockIndex* in mapBlockIndex that is a checkpoint + CBlockIndex* GetLastCheckpoint(const std::map& mapBlockIndex); } #endif