#[repr(u8)]pub enum Warning {
UnknownNewRulesActivated = 0,
LargeWorkInvalidChain = 1,
}
Expand description
Warning conditions detected by the kernel during validation.
These warnings indicate potentially problematic conditions that may require user attention or represent network-wide issues.
Variants§
UnknownNewRulesActivated = 0
Unknown new consensus rules have been activated
This typically means the software is out of date and doesn’t recognize new consensus rules that have activated on the network.
LargeWorkInvalidChain = 1
A chain with significant work contains invalid blocks
This warning indicates that a substantial amount of computational work has been expended on a chain that contains invalid blocks.
Trait Implementations§
Source§impl From<Warning> for btck_Warning
impl From<Warning> for btck_Warning
Source§impl From<u8> for Warning
impl From<u8> for Warning
Source§fn from(value: btck_Warning) -> Self
fn from(value: btck_Warning) -> Self
Converts to this type from the input type.
impl Copy for Warning
impl Eq for Warning
impl StructuralPartialEq for Warning
Auto Trait Implementations§
impl Freeze for Warning
impl RefUnwindSafe for Warning
impl Send for Warning
impl Sync for Warning
impl Unpin for Warning
impl UnwindSafe for Warning
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