X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning-block-sync%2Fsrc%2Finit.rs;h=d51cd3ba606f9bd513326cc527ab677459b58b0d;hb=2c7c1a6a7a7796d6cbef4a2549fc0a7338fc8fb9;hp=83e356919b8e231a8d4a3bda41b0d65645e146fc;hpb=03a518965100b6852f36e4f95ead4c1d93f5c4b0;p=rust-lightning diff --git a/lightning-block-sync/src/init.rs b/lightning-block-sync/src/init.rs index 83e35691..d51cd3ba 100644 --- a/lightning-block-sync/src/init.rs +++ b/lightning-block-sync/src/init.rs @@ -1,3 +1,6 @@ +//! Utilities to assist in the initial sync required to initialize or reload Rust-Lightning objects +//! from disk. + use crate::{BlockSource, BlockSourceResult, Cache, ChainNotifier}; use crate::poll::{ChainPoller, Validate, ValidatedBlockHeader}; @@ -11,6 +14,8 @@ use lightning::chain; /// /// Upon success, the returned header can be used to initialize [`SpvClient`]. Useful during a fresh /// start when there are no chain listeners to sync yet. +/// +/// [`SpvClient`]: crate::SpvClient pub async fn validate_best_block_header(block_source: &mut B) -> BlockSourceResult { let (best_block_hash, best_block_height) = block_source.get_best_block().await?; @@ -113,9 +118,9 @@ BlockSourceResult { /// } /// ``` /// -/// [`SpvClient`]: ../struct.SpvClient.html -/// [`ChannelManager`]: ../../lightning/ln/channelmanager/struct.ChannelManager.html -/// [`ChannelMonitor`]: ../../lightning/chain/channelmonitor/struct.ChannelMonitor.html +/// [`SpvClient`]: crate::SpvClient +/// [`ChannelManager`]: lightning::ln::channelmanager::ChannelManager +/// [`ChannelMonitor`]: lightning::chain::channelmonitor::ChannelMonitor pub async fn synchronize_listeners( block_source: &mut B, network: Network,