Type Alias polkadot_node_primitives::CollatorFn
source · pub type CollatorFn = Box<dyn Fn(Hash, &PersistedValidationData) -> Pin<Box<dyn Future<Output = Option<CollationResult>> + Send>> + Send + Sync>;
Expand description
Collation function.
Will be called with the hash of the relay chain block the parachain block should be build on and
the PersistedValidationData
that provides information about the state of the parachain on
the relay chain.
Returns an optional CollationResult
.
Aliased Type§
struct CollatorFn(/* private fields */);