aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-01-12 12:12:56 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2017-01-12 12:13:14 +0100
commitfac0f30482d56c7a38e9bdd7a4090b896965f030 (patch)
tree0baeef3f436d66f2ad6b3f4f590ddc9f003cd198 /src/validation.h
parenta65ced1a66575c652baf5084644b8647f531be8c (diff)
parentdf3637177a5988261e6ce704018e14140401e1e1 (diff)
downloadbitcoin-fac0f30482d56c7a38e9bdd7a4090b896965f030.tar.xz
Merge #9472: Disentangle progress estimation from checkpoints and update it
df36371 Update estimated transaction count data (Pieter Wuille) e356d9a Shorten variable names and switch to tx/s (Pieter Wuille) 6dd8116 Remove SIGCHECK_VERIFICATION_FACTOR (Pieter Wuille) 3641141 Move tx estimation data out of CCheckPointData (Pieter Wuille) a4bac66 [MOVEONLY] Move progress estimation out of checkpoints (Pieter Wuille)
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 f5e76c7d31..40e8907724 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -42,6 +42,7 @@ class CScriptCheck;
class CTxMemPool;
class CValidationInterface;
class CValidationState;
+struct ChainTxData;
struct PrecomputedTransactionData;
struct LockPoints;
@@ -281,6 +282,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 ChainTxData& data, CBlockIndex* pindex);
+
/**
* 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