aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2017-01-04 07:09:02 -0800
committerPieter Wuille <pieter.wuille@gmail.com>2017-01-04 13:18:49 -0800
commita4bac66cca62a5514579a15d198f3baa80683172 (patch)
tree8b87de6722b0626d1616667dbfeb587f75a0efcf /src/validation.h
parent7dac1e5e9e887f5f6ff146e812a05bd3bf281eae (diff)
[MOVEONLY] Move progress estimation out of checkpoints
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/validation.h b/src/validation.h
index 981f659633..0288e9163e 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -42,6 +42,7 @@ class CScriptCheck;
class CTxMemPool;
class CValidationInterface;
class CValidationState;
+class CCheckpointData;
struct PrecomputedTransactionData;
struct LockPoints;
@@ -279,6 +280,9 @@ bool GetTransaction(const uint256 &hash, CTransactionRef &tx, const Consensus::P
bool ActivateBestChain(CValidationState& state, const CChainParams& chainparams, std::shared_ptr<const CBlock> pblock = std::shared_ptr<const CBlock>());
CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams);
+/** Guess verification progress (as a fraction between 0.0=genesis and 1.0=current tip). */
+double GuessVerificationProgress(const CCheckpointData& data, CBlockIndex* pindex, bool fSigchecks = true);
+
/**
* Prune block and undo files (blk???.dat and undo???.dat) so that the disk space used is less than a user-defined target.
* The user sets the target (in MB) on the command line or in config file. This will be run on startup and whenever new