Changeset View
Changeset View
Standalone View
Standalone View
src/checkpoints.cpp
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include <checkpoints.h> | #include <checkpoints.h> | ||||
#include <chain.h> | |||||
#include <chainparams.h> | #include <chainparams.h> | ||||
#include <reverse_iterator.h> | #include <reverse_iterator.h> | ||||
// D6970 moved LookupBlockIndex from chain.h to validation.h TODO: remove this | |||||
// when LookupBlockIndex is refactored out of validation | |||||
#include <validation.h> | |||||
#include <cstdint> | #include <cstdint> | ||||
namespace Checkpoints { | namespace Checkpoints { | ||||
bool CheckBlock(const CCheckpointData &data, int nHeight, | bool CheckBlock(const CCheckpointData &data, int nHeight, | ||||
const BlockHash &hash) { | const BlockHash &hash) { | ||||
const MapCheckpoints &checkpoints = data.mapCheckpoints; | const MapCheckpoints &checkpoints = data.mapCheckpoints; | ||||
Show All 24 Lines |