reth_ethereum_payload_builder/
config.rs

1use alloy_primitives::Bytes;
2
3/// Settings for the Ethereum builder.
4#[derive(PartialEq, Eq, Clone, Debug)]
5pub struct EthereumBuilderConfig {
6    /// Block extra data.
7    pub extra_data: Bytes,
8}
9
10impl EthereumBuilderConfig {
11    /// Create new payload builder config.
12    pub const fn new(extra_data: Bytes) -> Self {
13        Self { extra_data }
14    }
15}
16
17impl EthereumBuilderConfig {
18    /// Returns owned extra data bytes for the block.
19    pub fn extra_data(&self) -> Bytes {
20        self.extra_data.clone()
21    }
22}