A "reason" why a block was invalid, suitable for determining whether the provider of the block should be banned/ignored/disconnected/etc. These are much more granular than the rejection codes, which may be more useful for some other use‐cases.
Synopsis
Declared in <consensus/validation.h>
enum class BlockValidationResult : int;
Members
Name |
Description |
|
initial value. Block has not yet been rejected |
|
invalid by consensus rules (excluding any below reasons) |
|
this block was cached as being invalid and we didn't store the reason why |
|
invalid proof of work or time too old |
|
the block's data didn't match the data committed to by the PoW |
|
We don't have the previous block the checked one is built on |
|
A block this one builds on is invalid |
|
block timestamp was > 2 hours in the future (or our clock is bad) |
|
the block header may be on a too‐little‐work chain |
Created with MrDocs