Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 346 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Import blocks from an external file. | * Import blocks from an external file. | ||||
*/ | */ | ||||
bool LoadExternalBlockFile(const Config &config, FILE *fileIn, | bool LoadExternalBlockFile(const Config &config, FILE *fileIn, | ||||
CDiskBlockPos *dbp = nullptr); | CDiskBlockPos *dbp = nullptr); | ||||
/** | /** | ||||
* Initialize a new block tree database + block data on disk. | * Ensures we have a genesis block in the block tree, possibly writing one to | ||||
* disk. | |||||
*/ | */ | ||||
bool InitBlockIndex(const Config &config); | bool LoadGenesisBlock(const CChainParams &chainparams); | ||||
/** | /** | ||||
* Load the block tree and coins database from disk. | * Load the block tree and coins database from disk, initializing state if we're | ||||
* running with -reindex. | |||||
*/ | */ | ||||
bool LoadBlockIndex(const Config &config); | bool LoadBlockIndex(const Config &config); | ||||
/** | /** | ||||
* Update the chain tip based on database information. | * Update the chain tip based on database information. | ||||
*/ | */ | ||||
void LoadChainTip(const CChainParams &chainparams); | bool LoadChainTip(const Config &config); | ||||
/** | /** | ||||
* Unload database information. | * Unload database information. | ||||
*/ | */ | ||||
void UnloadBlockIndex(); | void UnloadBlockIndex(); | ||||
/** | /** | ||||
* Run an instance of the script checking thread. | * Run an instance of the script checking thread. | ||||
▲ Show 20 Lines • Show All 314 Lines • Show Last 20 Lines |