aboutsummaryrefslogtreecommitdiff
path: root/src/checkpoints.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-09-21 01:03:32 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2014-09-21 01:10:14 +0200
commit934b153a2caba4071a614e5b3ef40feeaff631d4 (patch)
tree3d95becb8f49ad812227c5f3bfafddec4c72f6d3 /src/checkpoints.h
parent25308337d659108e3320257fb6c1c16d5fe24aa9 (diff)
parent20e01b1a03819d843a860284033b48a5e3b65ff7 (diff)
Merge pull request #4933
20e01b1 Apply clang-format on some infrequently-updated files (Pieter Wuille)
Diffstat (limited to 'src/checkpoints.h')
-rw-r--r--src/checkpoints.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/checkpoints.h b/src/checkpoints.h
index 6d3f2d4935..fca046559a 100644
--- a/src/checkpoints.h
+++ b/src/checkpoints.h
@@ -13,20 +13,20 @@ class uint256;
/** Block-chain checkpoints are compiled-in sanity checks.
* They are updated every release or three.
*/
-namespace Checkpoints {
+namespace Checkpoints
+{
+// Returns true if block passes checkpoint checks
+bool CheckBlock(int nHeight, const uint256& hash);
- // Returns true if block passes checkpoint checks
- bool CheckBlock(int nHeight, const uint256& hash);
+// Return conservative estimate of total number of blocks, 0 if unknown
+int GetTotalBlocksEstimate();
- // Return conservative estimate of total number of blocks, 0 if unknown
- int GetTotalBlocksEstimate();
+// Returns last CBlockIndex* in mapBlockIndex that is a checkpoint
+CBlockIndex* GetLastCheckpoint();
- // Returns last CBlockIndex* in mapBlockIndex that is a checkpoint
- CBlockIndex* GetLastCheckpoint();
+double GuessVerificationProgress(CBlockIndex* pindex, bool fSigchecks = true);
- double GuessVerificationProgress(CBlockIndex *pindex, bool fSigchecks = true);
-
- extern bool fEnabled;
+extern bool fEnabled;
} //namespace Checkpoints