Page MenuHomePhabricator

checkpoints.cpp
No OneTemporary

checkpoints.cpp

// Copyright (c) 2009-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <checkpoints.h>
#include <chainparams.h>
namespace Checkpoints {
bool CheckBlock(const CCheckpointData &data, int nHeight,
const BlockHash &hash) {
const MapCheckpoints &checkpoints = data.mapCheckpoints;
MapCheckpoints::const_iterator i = checkpoints.find(nHeight);
if (i == checkpoints.end()) {
return true;
}
return hash == i->second;
}
} // namespace Checkpoints

File Metadata

Mime Type
text/x-c++
Expires
Mon, Nov 25, 08:02 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4511986
Default Alt Text
checkpoints.cpp (619 B)

Event Timeline