reth_node_core::cli::config

Trait PayloadBuilderConfig

Source
pub trait PayloadBuilderConfig {
    // Required methods
    fn extra_data(&self) -> Cow<'_, str>;
    fn interval(&self) -> Duration;
    fn deadline(&self) -> Duration;
    fn gas_limit(&self) -> u64;
    fn max_payload_tasks(&self) -> usize;

    // Provided method
    fn extra_data_bytes(&self) -> Bytes { ... }
}
Expand description

A trait that provides payload builder settings.

This provides all basic payload builder settings and is implemented by the PayloadBuilderArgs type.

Required Methods§

Source

fn extra_data(&self) -> Cow<'_, str>

Block extra data set by the payload builder.

Source

fn interval(&self) -> Duration

The interval at which the job should build a new payload after the last.

Source

fn deadline(&self) -> Duration

The deadline for when the payload builder job should resolve.

Source

fn gas_limit(&self) -> u64

Target gas limit for built blocks.

Source

fn max_payload_tasks(&self) -> usize

Maximum number of tasks to spawn for building a payload.

Provided Methods§

Source

fn extra_data_bytes(&self) -> Bytes

Returns the extra data as bytes.

Implementors§