Type Definition 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
[ValidationData
] that provides information about the state of the parachain on the relay chain.
Returns an optional CollationResult
.