pub struct ReorgEvent {
pub chain: String,
pub fork_height: u64,
pub depth: u64,
pub old_tip: [u8; 32],
pub new_tip: [u8; 32],
}Expand description
Reorg event detected on a chain
Fields§
§chain: StringChain identifier
fork_height: u64Fork point (last common block height)
depth: u64Depth of the reorg (blocks invalidated)
old_tip: [u8; 32]Old chain tip hash (now orphaned)
new_tip: [u8; 32]New chain tip hash (current best chain)
Trait Implementations§
Source§impl Clone for ReorgEvent
impl Clone for ReorgEvent
Source§fn clone(&self) -> ReorgEvent
fn clone(&self) -> ReorgEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReorgEvent
impl RefUnwindSafe for ReorgEvent
impl Send for ReorgEvent
impl Sync for ReorgEvent
impl Unpin for ReorgEvent
impl UnsafeUnpin for ReorgEvent
impl UnwindSafe for ReorgEvent
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