aboutsummaryrefslogtreecommitdiff
path: root/src/checkpoints.h
diff options
context:
space:
mode:
author251 <13120787+251Labs@users.noreply.github.com>2019-03-23 17:41:16 +0100
committer251 <13120787+251Labs@users.noreply.github.com>2019-03-23 17:43:54 +0100
commit418d3230f86f77dde6e817f502baff8a54b707fa (patch)
treea3507114d0b0a2d9184d187d6ded516791151894 /src/checkpoints.h
parent7b13c646457980f44599412f243694fa682a1abf (diff)
downloadbitcoin-418d3230f86f77dde6e817f502baff8a54b707fa.tar.xz
Resolve the checkpoints <-> validation CD.
This commit resolves the checkpoints -> validation -> checkpoints cirular dependency by moving `CheckPoints::GetLastCheckpoint(const CCheckpointData& data)` from `checkpoints.cpp` to `validation.cpp`.
Diffstat (limited to 'src/checkpoints.h')
-rw-r--r--src/checkpoints.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/checkpoints.h b/src/checkpoints.h
deleted file mode 100644
index a25e97e469..0000000000
--- a/src/checkpoints.h
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) 2009-2018 The Bitcoin Core developers
-// Distributed under the MIT software license, see the accompanying
-// file COPYING or http://www.opensource.org/licenses/mit-license.php.
-
-#ifndef BITCOIN_CHECKPOINTS_H
-#define BITCOIN_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 // BITCOIN_CHECKPOINTS_H