Struct lightning_block_sync::poll::ValidatedBlockHeader
source · pub struct ValidatedBlockHeader { /* private fields */ }
Expand description
A block header with validated proof of work and corresponding block hash.
Implementations§
source§impl ValidatedBlockHeader
impl ValidatedBlockHeader
sourcepub fn to_best_block(&self) -> BestBlock
pub fn to_best_block(&self) -> BestBlock
Returns the BestBlock
corresponding to this validated block header, which can be passed
into ChannelManager::new
as part of its ChainParameters
. Useful for ensuring that
the SpvClient
and ChannelManager
are initialized to the same block during a fresh
start.
Trait Implementations§
source§impl Clone for ValidatedBlockHeader
impl Clone for ValidatedBlockHeader
source§fn clone(&self) -> ValidatedBlockHeader
fn clone(&self) -> ValidatedBlockHeader
Returns a copy 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 ValidatedBlockHeader
impl Debug for ValidatedBlockHeader
source§impl Deref for ValidatedBlockHeader
impl Deref for ValidatedBlockHeader
source§impl PartialEq<ValidatedBlockHeader> for ValidatedBlockHeader
impl PartialEq<ValidatedBlockHeader> for ValidatedBlockHeader
source§fn eq(&self, other: &ValidatedBlockHeader) -> bool
fn eq(&self, other: &ValidatedBlockHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.