Enum nakamoto_node::client::protocol::ChainEvent
[−]pub enum ChainEvent {
BlockConnected {
height: u64,
header: BlockHeader,
},
BlockDisconnected {
height: u64,
header: BlockHeader,
},
BlockDiscovered(SocketAddr, BlockHash),
Syncing {
current: u64,
best: u64,
},
Synced(BlockHash, u64),
StaleTip(LocalTime),
PeerMisbehaved(SocketAddr),
PeerHeightUpdated {
height: u64,
},
}Expand description
An event emitted by the sync manager.
Variants
BlockConnected
A block was added to the main chain.
BlockDisconnected
A block was removed from the main chain.
BlockDiscovered(SocketAddr, BlockHash)
A new block was discovered via a peer.
Syncing
Syncing headers.
Synced(BlockHash, u64)
Synced up to the specified hash and height.
StaleTip(LocalTime)
Potential stale tip detected on the active chain.
PeerMisbehaved(SocketAddr)
Peer misbehaved.
PeerHeightUpdated
Fields
height: u64Best height known.
Peer height updated.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more