Trait PayloadBuilderConfig
pub trait PayloadBuilderConfig {
// Required methods
fn extradata(&self) -> Cow<'_, str>;
fn interval(&self) -> Duration;
fn deadline(&self) -> Duration;
fn max_gas_limit(&self) -> u64;
fn max_payload_tasks(&self) -> usize;
// Provided method
fn extradata_bytes(&self) -> Bytes { ... }
}
Expand description
Re-export the core configuration traits. A trait that provides payload builder settings.
This provides all basic payload builder settings and is implemented by the
PayloadBuilderArgs
type.
Required Methods§
fn interval(&self) -> Duration
fn interval(&self) -> Duration
The interval at which the job should build a new payload after the last.
fn max_gas_limit(&self) -> u64
fn max_gas_limit(&self) -> u64
Target gas ceiling for built blocks.
fn max_payload_tasks(&self) -> usize
fn max_payload_tasks(&self) -> usize
Maximum number of tasks to spawn for building a payload.
Provided Methods§
fn extradata_bytes(&self) -> Bytes
fn extradata_bytes(&self) -> Bytes
Returns the extradata as bytes.