Enum lightning_block_sync::poll::ChainTip
source · pub enum ChainTip {
Common,
Better(ValidatedBlockHeader),
Worse(ValidatedBlockHeader),
}
Expand description
A chain tip relative to another chain tip in terms of block hash and chainwork.
Variants§
Common
A chain tip with the same hash as another chain’s tip.
Better(ValidatedBlockHeader)
A chain tip with more chainwork than another chain’s tip.
Worse(ValidatedBlockHeader)
A chain tip with less or equal chainwork than another chain’s tip. In either case, the hashes of each tip will be different.
Trait Implementations§
source§impl PartialEq<ChainTip> for ChainTip
impl PartialEq<ChainTip> for ChainTip
impl Eq for ChainTip
impl StructuralEq for ChainTip
impl StructuralPartialEq for ChainTip
Auto Trait Implementations§
impl RefUnwindSafe for ChainTip
impl Send for ChainTip
impl Sync for ChainTip
impl Unpin for ChainTip
impl UnwindSafe for ChainTip
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