pub enum ChainEvent {
Tip {
height: Height,
hash: Hash,
time: u32,
header: EventHeader,
},
Fork {
height: Height,
competing_tips: [EventHeader; 2],
depth: u32,
},
Reorg {
fork_height: Height,
depth: u32,
deactivated_headers: Vec<EventHeader>,
new_tip: EventHeader,
},
Invalidated {
block_hash: Hash,
},
Frozen {
outpoint: Outpoint,
},
TipAge {
seconds: u64,
tip: EventHeader,
},
}Expand description
The six #32 events, serialized and deserialized with v: 1 and kind.
[SRC] rust-chaintracks@a62f9ed docs/CHAIN-EVENTS.md:24-35.
For typed host faults, use decode_envelope.
Variants§
Tip
A new active tip. Only suspect transactions need a recheck.
Fork
A fork that has not resolved.
Reorg
Blocks at or above a fork point have been replaced.
Invalidated
The alert system invalidated a block.
Frozen
A frozen output. The wallet owns its meaning; it moves no tracker word.
TipAge
Tip age. The header snapshot implements the fail closed response.
Trait Implementations§
Source§impl Clone for ChainEvent
impl Clone for ChainEvent
Source§impl Debug for ChainEvent
impl Debug for ChainEvent
Source§impl<'de> Deserialize<'de> for ChainEvent
impl<'de> Deserialize<'de> for ChainEvent
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ChainEvent
Source§impl PartialEq for ChainEvent
impl PartialEq for ChainEvent
Source§impl Serialize for ChainEvent
impl Serialize for ChainEvent
impl StructuralPartialEq for ChainEvent
Auto Trait Implementations§
impl Freeze for ChainEvent
impl RefUnwindSafe for ChainEvent
impl Send for ChainEvent
impl Sync for ChainEvent
impl Unpin for ChainEvent
impl UnsafeUnpin for ChainEvent
impl UnwindSafe for ChainEvent
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