X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fcheckpoints.h;h=df3e373782e15f63ee15650c6b080c944eff4994;hb=d11488abd05cb39a9f481e7c4c35f780197a3d28;hp=32094fdde620149a1c9f810b2eba861dc6f8c280;hpb=d27be1f55777bd502beb6b89513f1a03ed988f1a;p=novacoin.git diff --git a/src/checkpoints.h b/src/checkpoints.h index 32094fd..df3e373 100644 --- a/src/checkpoints.h +++ b/src/checkpoints.h @@ -1,15 +1,18 @@ -// Copyright (c) 2011 The Bitcoin developers +// Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying -// file license.txt or http://www.opensource.org/licenses/mit-license.php. +// file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_CHECKPOINT_H #define BITCOIN_CHECKPOINT_H +#include +#include "util.h" + class uint256; +class CBlockIndex; -// -// Block-chain checkpoints are compiled-in sanity checks. -// They are updated every release or three. -// +/** Block-chain checkpoints are compiled-in sanity checks. + * They are updated every release or three. + */ namespace Checkpoints { // Returns true if block passes checkpoint checks @@ -17,6 +20,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