pub type WorkItem = GenericWorkItem<ExtrinsicSpec>;Aliased Type§
struct WorkItem {
pub service: u32,
pub code_hash: CodeHash,
pub payload: WorkPayload,
pub gas_limit: i64,
pub import_segments: BoundedVec<ImportSpec, ConstU32<2048>>,
pub extrinsics: Vec<ExtrinsicSpec>,
pub export_count: u16,
}Fields§
§service: u32Service identifier to which this work item relates.
code_hash: CodeHashThe service’s code hash at the time of reporting. This must be available in-core at the time of the lookup-anchor block.
payload: WorkPayloadPayload blob.
gas_limit: i64Gas limit to execute this work item.
import_segments: BoundedVec<ImportSpec, ConstU32<2048>>Sequence of imported data segments.
extrinsics: Vec<ExtrinsicSpec>Extrinsics.
export_count: u16Number of segments exported by this work item.