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

Method build_empty_payload

crates/execution/payload/src/builder.rs:281–296  ·  view source on GitHub ↗

NOTE: this should only be used for testing purposes because this doesn't have access to L1 system txs, hence on_missing_payload we return [MissingPayloadBehaviour::AwaitInProgress].

(
        &self,
        config: PayloadConfig<Self::Attributes, N::BlockHeader>,
    )

Source from the content-addressed store, hash-verified

279 // NOTE: this should only be used for testing purposes because this doesn't have access to L1
280 // system txs, hence on_missing_payload we return [MissingPayloadBehaviour::AwaitInProgress].
281 fn build_empty_payload(
282 &self,
283 config: PayloadConfig<Self::Attributes, N::BlockHeader>,
284 ) -> Result<Self::BuiltPayload, PayloadBuilderError> {
285 let args = BuildArguments {
286 config,
287 cached_reads: Default::default(),
288 execution_cache: None,
289 trie_handle: None,
290 cancel: Default::default(),
291 best_payload: None,
292 };
293 self.build_payload(args, |_| NoopPayloadTransactions::<Pool::Transaction>::default())?
294 .into_payload()
295 .ok_or_else(|| PayloadBuilderError::MissingPayload)
296 }
297}
298
299/// The type that builds the payload.

Callers

nothing calls this directly

Calls 1

build_payloadMethod · 0.45

Tested by

no test coverage detected