Trait pallet_authorship::FilterUncle
source · pub trait FilterUncle<Header, Author> {
type Accumulator: Default;
// Required method
fn filter_uncle(
header: &Header,
acc: &mut Self::Accumulator
) -> Result<Option<Author>, &'static str>;
}
Expand description
Additional filtering on uncles that pass preliminary ancestry checks.
This should do work such as checking seals
Required Associated Types§
sourcetype Accumulator: Default
type Accumulator: Default
An accumulator of data about uncles included.
In practice, this is used to validate uncles against others in the same block.
Required Methods§
sourcefn filter_uncle(
header: &Header,
acc: &mut Self::Accumulator
) -> Result<Option<Author>, &'static str>
fn filter_uncle( header: &Header, acc: &mut Self::Accumulator ) -> Result<Option<Author>, &'static str>
Do additional filtering on a seal-checked uncle block, with the accumulated filter.