Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 205 Lines • ▼ Show 20 Lines | public: | ||||
bool shouldValidatePoW() const { return checkPoW; } | bool shouldValidatePoW() const { return checkPoW; } | ||||
bool shouldValidateMerkleRoot() const { return checkMerkleRoot; } | bool shouldValidateMerkleRoot() const { return checkMerkleRoot; } | ||||
uint64_t getExcessiveBlockSize() const { return excessiveBlockSize; } | uint64_t getExcessiveBlockSize() const { return excessiveBlockSize; } | ||||
}; | }; | ||||
/** | /** | ||||
* Import blocks from an external file. | * Import blocks from an external file. | ||||
*/ | */ | ||||
bool LoadExternalBlockFile(const Config &config, FILE *fileIn, | void LoadExternalBlockFile(const Config &config, FILE *fileIn, | ||||
FlatFilePos *dbp = nullptr); | FlatFilePos *dbp = nullptr); | ||||
/** | /** | ||||
* Ensures we have a genesis block in the block tree, possibly writing one to | * Ensures we have a genesis block in the block tree, possibly writing one to | ||||
* disk. | * disk. | ||||
*/ | */ | ||||
bool LoadGenesisBlock(const CChainParams &chainparams); | bool LoadGenesisBlock(const CChainParams &chainparams); | ||||
▲ Show 20 Lines • Show All 1,012 Lines • Show Last 20 Lines |