pub enum BlockValidationResult {
RESULT_UNSET = 0,
CONSENSUS = 1,
CACHED_INVALID = 2,
INVALID_HEADER = 3,
MUTATED = 4,
MISSING_PREV = 5,
INVALID_PREV = 6,
TIME_FUTURE = 7,
HEADER_LOW_WORK = 8,
}
Expand description
A granular reason why a block was invalid.
Variants§
RESULT_UNSET = 0
initial value. Block has not yet been rejected
CONSENSUS = 1
invalid by consensus rules (excluding any below reasons)
CACHED_INVALID = 2
this block was cached as being invalid and we didn’t store the reason why
INVALID_HEADER = 3
invalid proof of work or time too old
MUTATED = 4
the block’s data didn’t match the data committed to by the PoW
MISSING_PREV = 5
We don’t have the previous block the checked one is built on
INVALID_PREV = 6
A block this one builds on is invalid
TIME_FUTURE = 7
block timestamp was > 2 hours in the future (or our clock is bad)
HEADER_LOW_WORK = 8
the block header may be on a too-little-work chain
Trait Implementations§
Source§impl From<u32> for BlockValidationResult
impl From<u32> for BlockValidationResult
Source§fn from(res: kernel_BlockValidationResult) -> Self
fn from(res: kernel_BlockValidationResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BlockValidationResult
impl RefUnwindSafe for BlockValidationResult
impl Send for BlockValidationResult
impl Sync for BlockValidationResult
impl Unpin for BlockValidationResult
impl UnwindSafe for BlockValidationResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more