Skip to main content

DifficultyAncestor

Type Alias DifficultyAncestor 

Source
pub type DifficultyAncestor = Arc<dyn Fn(u64) -> Option<(u64, u64)> + Sync + Send>;
Expand description

Ancestor compact bits and timestamp, keyed by height.

When set on BlockValidationContext, connect requires the header’s bits to equal crate::pow::next_required_bits. None skips that check.

Aliased Type§

pub struct DifficultyAncestor { /* private fields */ }