pub enum ProcessBlockResult {
Connected {
hash: BlockHash,
height: u32,
},
Reorged {
hash: BlockHash,
height: u32,
disconnected: u32,
connected: u32,
},
SideChain {
hash: BlockHash,
height: u32,
},
AlreadyKnown {
hash: BlockHash,
},
}Expand description
The outcome of processing a new block.
Variants§
Connected
The block extended the active chain (normal case).
Reorged
The block triggered a reorganisation to a better chain.
Fields
SideChain
The block was accepted but is on a side chain (less work than active).
AlreadyKnown
The block was already known.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProcessBlockResult
impl RefUnwindSafe for ProcessBlockResult
impl Send for ProcessBlockResult
impl Sync for ProcessBlockResult
impl Unpin for ProcessBlockResult
impl UnsafeUnpin for ProcessBlockResult
impl UnwindSafe for ProcessBlockResult
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