Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 420 Lines • ▼ Show 20 Lines | bool ActivateBestChain( | ||||
const Config &config, CValidationState &state, | const Config &config, CValidationState &state, | ||||
std::shared_ptr<const CBlock> pblock = std::shared_ptr<const CBlock>()); | std::shared_ptr<const CBlock> pblock = std::shared_ptr<const CBlock>()); | ||||
Amount GetBlockSubsidy(int nHeight, const Consensus::Params &consensusParams); | Amount GetBlockSubsidy(int nHeight, const Consensus::Params &consensusParams); | ||||
/** | /** | ||||
* Guess verification progress (as a fraction between 0.0=genesis and | * Guess verification progress (as a fraction between 0.0=genesis and | ||||
* 1.0=current tip). | * 1.0=current tip). | ||||
*/ | */ | ||||
double GuessVerificationProgress(const ChainTxData &data, CBlockIndex *pindex); | double GuessVerificationProgress(const ChainTxData &data, | ||||
const CBlockIndex *pindex); | |||||
/** | /** | ||||
* Calculate the amount of disk space the block & undo files currently use. | * Calculate the amount of disk space the block & undo files currently use. | ||||
*/ | */ | ||||
uint64_t CalculateCurrentUsage(); | uint64_t CalculateCurrentUsage(); | ||||
/** | /** | ||||
* Mark one block file as pruned. | * Mark one block file as pruned. | ||||
▲ Show 20 Lines • Show All 289 Lines • Show Last 20 Lines |