pub struct HeaderCheckpoint {
pub height: u32,
pub hash: BlockHash,
}Expand description
A known block hash in the chain of most work.
Fields§
§height: u32The index of the block hash.
hash: BlockHashThe Bitcoin block hash expected at this height
Implementations§
Source§impl HeaderCheckpoint
impl HeaderCheckpoint
Sourcepub fn new(height: u32, hash: BlockHash) -> Self
pub fn new(height: u32, hash: BlockHash) -> Self
Create a new checkpoint from a known checkpoint of significant work.
Sourcepub fn taproot_activation() -> Self
pub fn taproot_activation() -> Self
One block before the activation of the taproot softfork.
Sourcepub fn segwit_activation() -> Self
pub fn segwit_activation() -> Self
One block before the activation of the segwit softfork.
Trait Implementations§
Source§impl Clone for HeaderCheckpoint
impl Clone for HeaderCheckpoint
Source§fn clone(&self) -> HeaderCheckpoint
fn clone(&self) -> HeaderCheckpoint
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 moreSource§impl Debug for HeaderCheckpoint
impl Debug for HeaderCheckpoint
impl Copy for HeaderCheckpoint
Auto Trait Implementations§
impl Freeze for HeaderCheckpoint
impl RefUnwindSafe for HeaderCheckpoint
impl Send for HeaderCheckpoint
impl Sync for HeaderCheckpoint
impl Unpin for HeaderCheckpoint
impl UnwindSafe for HeaderCheckpoint
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