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

Method block_to_payload

crates/execution/node/src/engine.rs:51–62  ·  view source on GitHub ↗
(
        block: SealedBlock<
            <<Self::BuiltPayload as BuiltPayload>::Primitives as NodePrimitives>::Block,
        >,
        bal: Option<Bytes>,
    )

Source from the content-addressed store, hash-verified

49 type PayloadAttributes = T::PayloadAttributes;
50
51 fn block_to_payload(
52 block: SealedBlock<
53 <<Self::BuiltPayload as BuiltPayload>::Primitives as NodePrimitives>::Block,
54 >,
55 bal: Option<Bytes>,
56 ) -> <T as PayloadTypes>::ExecutionData {
57 ExecutionData::from_block_unchecked_with_extras(
58 block.hash(),
59 &block.into_block().into_ethereum_block(),
60 bal,
61 )
62 }
63}
64
65impl<T: PayloadTypes<ExecutionData = ExecutionData>> EngineTypes for BaseEngineTypes<T>

Callers

nothing calls this directly

Calls 1

hashMethod · 0.45

Tested by

no test coverage detected