Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 305 Lines • ▼ Show 20 Lines | |||||
* May not be called in a validationinterface callback. | * May not be called in a validationinterface callback. | ||||
* | * | ||||
* @param[in] config The config. | * @param[in] config The config. | ||||
* @param[in] block The block headers themselves. | * @param[in] block The block headers themselves. | ||||
* @param[out] state This may be set to an Error state if any error | * @param[out] state This may be set to an Error state if any error | ||||
* occurred processing them. | * occurred processing them. | ||||
* @param[out] ppindex If set, the pointer will be set to point to the | * @param[out] ppindex If set, the pointer will be set to point to the | ||||
* last new block index object for the given headers. | * last new block index object for the given headers. | ||||
* @param[out] first_invalid First header that fails validation, if one exists. | |||||
* @return True if block headers were accepted as valid. | * @return True if block headers were accepted as valid. | ||||
*/ | */ | ||||
bool ProcessNewBlockHeaders(const Config &config, | bool ProcessNewBlockHeaders(const Config &config, | ||||
const std::vector<CBlockHeader> &block, | const std::vector<CBlockHeader> &block, | ||||
CValidationState &state, | CValidationState &state, | ||||
const CBlockIndex **ppindex = nullptr, | const CBlockIndex **ppindex = nullptr) | ||||
CBlockHeader *first_invalid = nullptr) | |||||
LOCKS_EXCLUDED(cs_main); | LOCKS_EXCLUDED(cs_main); | ||||
/** | /** | ||||
* Open a block file (blk?????.dat). | * Open a block file (blk?????.dat). | ||||
*/ | */ | ||||
FILE *OpenBlockFile(const FlatFilePos &pos, bool fReadOnly = false); | FILE *OpenBlockFile(const FlatFilePos &pos, bool fReadOnly = false); | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 679 Lines • Show Last 20 Lines |