You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Process an incoming block. This only returns after the best known valid
216
216
* block is made active. Note that it does not, however, guarantee that the
217
217
* specific block passed to it has been checked for validity!
218
+
*
219
+
* If you want to *possibly* get feedback on whether pblock is valid, you must
220
+
* install a CValidationInterface (see validationinterface.h) - this will have
221
+
* its BlockChecked method called whenever *any* block completes validation.
222
+
*
223
+
* Note that we guarantee that either the proof-of-work is valid on pblock, or
224
+
* (and possibly also) BlockChecked will have been called.
218
225
*
219
-
* @param[out] state This may be set to an Error state if any error occurred processing it, including during validation/connection/etc of otherwise unrelated blocks during reorganization; or it may be set to an Invalid state if pblock is itself invalid (but this is not guaranteed even when the block is checked). If you want to *possibly* get feedback on whether pblock is valid, you must also install a CValidationInterface (see validationinterface.h) - this will have its BlockChecked method called whenever *any* block completes validation.
220
226
* @param[in] pblock The block we want to process.
221
227
* @param[in] fForceProcessing Process this block even if unrequested; used for non-network block sources and whitelisted peers.
222
228
* @param[out] dbp The already known disk position of pblock, or NULL if not yet stored.
223
229
* @param[out] fNewBlock A boolean which is set to indicate if the block was first received via this call
0 commit comments