pub struct SyncUpdate {
pub tip: HeaderCheckpoint,
pub recent_history: BTreeMap<u32, Header>,
}Expand description
The node has synced to a new tip of the chain.
Fields§
§tip: HeaderCheckpointLast known tip of the blockchain
recent_history: BTreeMap<u32, Header>Ten recent headers ending with the tip
Implementations§
Source§impl SyncUpdate
impl SyncUpdate
Sourcepub fn tip(&self) -> HeaderCheckpoint
pub fn tip(&self) -> HeaderCheckpoint
Get the tip of the blockchain after this sync.
Sourcepub fn recent_history(&self) -> &BTreeMap<u32, Header>
pub fn recent_history(&self) -> &BTreeMap<u32, Header>
Get the ten most recent blocks in chronological order after this sync.
Trait Implementations§
Source§impl Clone for SyncUpdate
impl Clone for SyncUpdate
Source§fn clone(&self) -> SyncUpdate
fn clone(&self) -> SyncUpdate
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 SyncUpdate
impl RefUnwindSafe for SyncUpdate
impl Send for SyncUpdate
impl Sync for SyncUpdate
impl Unpin for SyncUpdate
impl UnwindSafe for SyncUpdate
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