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 more