Skip to main content

ScopeSource

Type Alias ScopeSource 

Source
pub type ScopeSource = Box<dyn Fn() -> (ContentHash, Option<ContentHash>) + Send>;
Expand description

Where a landing reads the scope it signs: this node’s id and a head its window still holds.

Read per landing rather than once per round, because a round appends as it goes and a node running with --require-scope admits only a recent head. A scope captured at the start would go stale in exactly the rounds that land the most.

Aliased Type§

pub struct ScopeSource(/* private fields */);