27 lines
649 B
C
27 lines
649 B
C
|
|
// Copyright (c) 2009-2018 The DigiByte Core developers
|
||
|
|
// Distributed under the MIT software license, see the accompanying
|
||
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||
|
|
|
||
|
|
#ifndef DIGIBYTE_CHECKPOINTS_H
|
||
|
|
#define DIGIBYTE_CHECKPOINTS_H
|
||
|
|
|
||
|
|
#include <uint256.h>
|
||
|
|
|
||
|
|
#include <map>
|
||
|
|
|
||
|
|
class CBlockIndex;
|
||
|
|
struct CCheckpointData;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Block-chain checkpoints are compiled-in sanity checks.
|
||
|
|
* They are updated every release or three.
|
||
|
|
*/
|
||
|
|
namespace Checkpoints
|
||
|
|
{
|
||
|
|
|
||
|
|
//! Returns last CBlockIndex* that is a checkpoint
|
||
|
|
CBlockIndex* GetLastCheckpoint(const CCheckpointData& data);
|
||
|
|
|
||
|
|
} //namespace Checkpoints
|
||
|
|
|
||
|
|
#endif // DIGIBYTE_CHECKPOINTS_H
|