Trait BuiltPayload
pub trait BuiltPayload:
Send
+ Sync
+ Debug {
type Primitives: NodePrimitives;
// Required methods
fn block(
&self,
) -> &SealedBlock<<<Self::Primitives as NodePrimitives>::Block as Block>::Header, <<Self::Primitives as NodePrimitives>::Block as Block>::Body>;
fn fees(&self) -> Uint<256, 4>;
fn requests(&self) -> Option<Requests>;
// Provided method
fn executed_block(&self) -> Option<ExecutedBlock<Self::Primitives>> { ... }
}
Expand description
Represents a built payload type that contains a built SealedBlock
and can be converted into
engine API execution payloads.
Required Associated Types§
type Primitives: NodePrimitives
type Primitives: NodePrimitives
The node’s primitive types
Required Methods§
fn block(
&self,
) -> &SealedBlock<<<Self::Primitives as NodePrimitives>::Block as Block>::Header, <<Self::Primitives as NodePrimitives>::Block as Block>::Body>
fn block( &self, ) -> &SealedBlock<<<Self::Primitives as NodePrimitives>::Block as Block>::Header, <<Self::Primitives as NodePrimitives>::Block as Block>::Body>
Returns the built block (sealed)
Provided Methods§
fn executed_block(&self) -> Option<ExecutedBlock<Self::Primitives>>
fn executed_block(&self) -> Option<ExecutedBlock<Self::Primitives>>
Returns the entire execution data for the built block, if available.