Enum lightning_block_sync::poll::ChainTip [−][src]
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)
Tuple Fields
A chain tip with more chainwork than another chain’s tip.
Worse(ValidatedBlockHeader)
Tuple Fields
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
Auto Trait Implementations
impl RefUnwindSafe for ChainTip
impl UnwindSafe for ChainTip
Blanket Implementations
Mutably borrows from an owned value. Read more