OpAttributes

Trait OpAttributes 

Source
pub trait OpAttributes: PayloadBuilderAttributes {
    type Transaction: SignedTransaction;

    // Required methods
    fn no_tx_pool(&self) -> bool;
    fn sequencer_transactions(&self) -> &[WithEncoded<Self::Transaction>];
}
Expand description

Attributes for the OP payload builder.

Required Associated Types§

Source

type Transaction: SignedTransaction

Primitive transaction type.

Required Methods§

Source

fn no_tx_pool(&self) -> bool

Whether to use the transaction pool for the payload.

Source

fn sequencer_transactions(&self) -> &[WithEncoded<Self::Transaction>]

Sequencer transactions to include in the payload.

Implementors§

Source§

impl<T: SignedTransaction> OpAttributes for OpPayloadBuilderAttributes<T>