pub enum InvalidBlock {
Fatal,
Temporal,
}Expand description
The block was invalid.
Variants§
Fatal
This block is fatally invalid.
If a block proposal is received, yet the block is considered fatally invalid, the proposal will be dropped as if not received. The block proposal will not be voted for and received votes will be unrecognized.
Note this only affects block proposals, not blocks synced with their commits.
Temporal
The block is temporally invalid.
If a block proposal is received, yet the block is solely considered temporally invalid, the proposal will still be stored. The block proposal will not be voted for, but received votes will still be recognized, enabling participation in forming a commit, potentially adding this block despite its temporal invalidity (due to a supermajority of validators voting for it).
Trait Implementations§
Source§impl Clone for InvalidBlock
impl Clone for InvalidBlock
impl Copy for InvalidBlock
Auto Trait Implementations§
impl Freeze for InvalidBlock
impl RefUnwindSafe for InvalidBlock
impl Send for InvalidBlock
impl Sync for InvalidBlock
impl Unpin for InvalidBlock
impl UnsafeUnpin for InvalidBlock
impl UnwindSafe for InvalidBlock
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