mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
Merge #9472: Disentangle progress estimation from checkpoints and update it
df36371Update estimated transaction count data (Pieter Wuille)e356d9aShorten variable names and switch to tx/s (Pieter Wuille)6dd8116Remove SIGCHECK_VERIFICATION_FACTOR (Pieter Wuille)3641141Move tx estimation data out of CCheckPointData (Pieter Wuille)a4bac66[MOVEONLY] Move progress estimation out of checkpoints (Pieter Wuille)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user