MCPcopy Create free account
hub / github.com/base/base / new

Method new

crates/consensus/engine/src/task_queue/tasks/insert/task.rs:98–113  ·  view source on GitHub ↗

Creates a new insert task.

(
        client: Arc<EngineClient_>,
        rollup_config: Arc<RollupConfig>,
        envelope: BaseExecutionPayloadEnvelope,
        payload_safety: InsertPayloadSafety,
    )

Source from the content-addressed store, hash-verified

96impl<EngineClient_: EngineClient> InsertTask<EngineClient_> {
97 /// Creates a new insert task.
98 pub const fn new(
99 client: Arc<EngineClient_>,
100 rollup_config: Arc<RollupConfig>,
101 envelope: BaseExecutionPayloadEnvelope,
102 payload_safety: InsertPayloadSafety,
103 ) -> Self {
104 Self {
105 client,
106 rollup_config,
107 envelope,
108 payload_safety,
109 payload_policy: InsertPayloadPolicy::ExtendingOnly,
110 drop_invalid_payload: false,
111 result_tx: None,
112 }
113 }
114
115 /// Creates a new task to insert an unsafe payload.
116 pub const fn unsafe_payload(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected