We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
OMNameResolver::new_best_block
1 parent 61a37b1 commit 40e9174Copy full SHA for 40e9174
lightning/src/onion_message/dns_resolution.rs
@@ -332,7 +332,8 @@ impl OMNameResolver {
332
/// Informs the [`OMNameResolver`] of the passage of time in the form of a new best Bitcoin
333
/// block.
334
///
335
- /// This will call back to resolve some pending queries which have timed out.
+ /// 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.
337
pub fn new_best_block(&self, height: u32, time: u32) {
338
self.latest_block_time.store(time as usize, Ordering::Release);
339
self.latest_block_height.store(height as usize, Ordering::Release);
0 commit comments