Skip to content

Commit 40e9174

Browse files
committed
Correct docs on OMNameResolver::new_best_block
We decided against implementing `OMNameResolver` using completion callbacks, but the documentation on `new_best_block` was never updated to match.
1 parent 61a37b1 commit 40e9174

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/onion_message/dns_resolution.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ impl OMNameResolver {
332332
/// Informs the [`OMNameResolver`] of the passage of time in the form of a new best Bitcoin
333333
/// block.
334334
///
335-
/// This will call back to resolve some pending queries which have timed out.
335+
/// This is used to prune stale requests (by block height) and keep track of the current time
336+
/// to validate that DNSSEC proofs are current.
336337
pub fn new_best_block(&self, height: u32, time: u32) {
337338
self.latest_block_time.store(time as usize, Ordering::Release);
338339
self.latest_block_height.store(height as usize, Ordering::Release);

0 commit comments

Comments
 (0)