diff options
| author | Pieter Wuille <[email protected]> | 2014-09-19 19:21:46 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-09-19 19:21:46 +0200 |
| commit | 20e01b1a03819d843a860284033b48a5e3b65ff7 (patch) | |
| tree | 5b390722b053ce5b448919bda2695d173980ffb5 /src/checkpoints.h | |
| parent | Merge pull request #4944 (diff) | |
| download | discoin-20e01b1a03819d843a860284033b48a5e3b65ff7.tar.xz discoin-20e01b1a03819d843a860284033b48a5e3b65ff7.zip | |
Apply clang-format on some infrequently-updated files
Diffstat (limited to 'src/checkpoints.h')
| -rw-r--r-- | src/checkpoints.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/checkpoints.h b/src/checkpoints.h index 6d3f2d493..fca046559 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 |