Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 428 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
void PruneOneBlockFile(const int fileNumber); | void PruneOneBlockFile(const int fileNumber); | ||||
/** | /** | ||||
* Actually unlink the specified files | * Actually unlink the specified files | ||||
*/ | */ | ||||
void UnlinkPrunedFiles(const std::set<int> &setFilesToPrune); | void UnlinkPrunedFiles(const std::set<int> &setFilesToPrune); | ||||
/** Create a new block index entry for a given block hash */ | |||||
CBlockIndex *InsertBlockIndex(uint256 hash); | |||||
/** Flush all state, indexes and buffers to disk. */ | /** Flush all state, indexes and buffers to disk. */ | ||||
void FlushStateToDisk(); | void FlushStateToDisk(); | ||||
/** Prune block files and flush state to disk. */ | /** Prune block files and flush state to disk. */ | ||||
void PruneAndFlush(); | void PruneAndFlush(); | ||||
/** Prune block files up to a given height */ | /** Prune block files up to a given height */ | ||||
void PruneBlockFilesManual(int nPruneUpToHeight); | void PruneBlockFilesManual(int nPruneUpToHeight); | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 209 Lines • ▼ Show 20 Lines | |||||
const CBlockIndex *GetFinalizedBlock(); | const CBlockIndex *GetFinalizedBlock(); | ||||
/** | /** | ||||
* Checks if a block is finalized. | * Checks if a block is finalized. | ||||
*/ | */ | ||||
bool IsBlockFinalized(const CBlockIndex *pindex); | bool IsBlockFinalized(const CBlockIndex *pindex); | ||||
/** The currently-connected chain of blocks (protected by cs_main). */ | /** The currently-connected chain of blocks (protected by cs_main). */ | ||||
extern CChain chainActive; | extern CChain &chainActive; | ||||
/** | /** | ||||
* Global variable that points to the coins database (protected by cs_main) | * Global variable that points to the coins database (protected by cs_main) | ||||
*/ | */ | ||||
extern std::unique_ptr<CCoinsViewDB> pcoinsdbview; | extern std::unique_ptr<CCoinsViewDB> pcoinsdbview; | ||||
/** | /** | ||||
* Global variable that points to the active CCoinsView (protected by cs_main) | * Global variable that points to the active CCoinsView (protected by cs_main) | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |