Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 1,219 Lines • ▼ Show 20 Lines | public: | ||||
* Note that we guarantee that either the proof-of-work is valid on pblock, | * Note that we guarantee that either the proof-of-work is valid on pblock, | ||||
* or (and possibly also) BlockChecked will have been called. | * or (and possibly also) BlockChecked will have been called. | ||||
* | * | ||||
* May not be called in a validationinterface callback. | * May not be called in a validationinterface callback. | ||||
* | * | ||||
* @param[in] config The global config. | * @param[in] config The global config. | ||||
* @param[in] pblock The block we want to process. | * @param[in] pblock The block we want to process. | ||||
* @param[in] fForceProcessing Process this block even if unrequested; | * @param[in] fForceProcessing Process this block even if unrequested; | ||||
* used for non-network block sources and whitelisted peers. | * used for non-network block sources. | ||||
* @param[out] fNewBlock A boolean which is set to indicate if the block | * @param[out] fNewBlock A boolean which is set to indicate if the block | ||||
* was first received via this call. | * was first received via this call. | ||||
* @returns If the block was processed, independently of block validity | * @returns If the block was processed, independently of block validity | ||||
*/ | */ | ||||
bool ProcessNewBlock(const Config &config, | bool ProcessNewBlock(const Config &config, | ||||
const std::shared_ptr<const CBlock> pblock, | const std::shared_ptr<const CBlock> pblock, | ||||
bool fForceProcessing, bool *fNewBlock) | bool fForceProcessing, bool *fNewBlock) | ||||
LOCKS_EXCLUDED(cs_main); | LOCKS_EXCLUDED(cs_main); | ||||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |