Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 558 Lines • ▼ Show 20 Lines | private: | ||||
* HAVE_UNDO for any blocks that were stored in the deleted files. A db flag | * HAVE_UNDO for any blocks that were stored in the deleted files. A db flag | ||||
* records the fact that at least some block files have been pruned. | * records the fact that at least some block files have been pruned. | ||||
* | * | ||||
* @param[out] setFilesToPrune The set of file indices that can be | * @param[out] setFilesToPrune The set of file indices that can be | ||||
* unlinked will be returned | * unlinked will be returned | ||||
*/ | */ | ||||
void FindFilesToPrune(std::set<int> &setFilesToPrune, | void FindFilesToPrune(std::set<int> &setFilesToPrune, | ||||
uint64_t nPruneAfterHeight, int chain_tip_height, | uint64_t nPruneAfterHeight, int chain_tip_height, | ||||
bool is_ibd); | int prune_height, bool is_ibd); | ||||
public: | public: | ||||
BlockMap m_block_index GUARDED_BY(cs_main); | BlockMap m_block_index GUARDED_BY(cs_main); | ||||
/** | /** | ||||
* In order to efficiently track invalidity of headers, we keep the set of | * In order to efficiently track invalidity of headers, we keep the set of | ||||
* blocks which we tried to connect and found to be invalid here (ie which | * blocks which we tried to connect and found to be invalid here (ie which | ||||
* were set to BLOCK_FAILED_VALID since the last restart). We can then | * were set to BLOCK_FAILED_VALID since the last restart). We can then | ||||
▲ Show 20 Lines • Show All 724 Lines • Show Last 20 Lines |