Skip to content

Commit a06de8f

Browse files
committed
f docs
1 parent 37887fd commit a06de8f

File tree

1 file changed

+3
-0
lines changed
  • lightning-block-sync/src

1 file changed

+3
-0
lines changed

lightning-block-sync/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,9 @@ impl<'a, L: chain::Listen + ?Sized> ChainNotifier<'a, L> {
362362
///
363363
/// First resolves `prev_best_block` to a `ValidatedBlockHeader` using the `previous_blocks`
364364
/// field as fallback if needed, then finds the common ancestor.
365+
///
366+
/// Updates the header cache as it goes, tracking headers needed to find the diff to reuse for
367+
/// other objects that might need similar headers.
365368
async fn find_difference_from_best_block<P: Poll>(
366369
&mut self, current_header: ValidatedBlockHeader, prev_best_block: BestBlock,
367370
chain_poller: &mut P,

0 commit comments

Comments
 (0)