mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(builder): ethereum builder config (#13315)
This commit is contained in:
@ -195,11 +195,7 @@ where
|
||||
let (initialized_cfg, initialized_block_env) =
|
||||
self.cfg_and_block_env(&attributes, &parent).map_err(PayloadBuilderError::other)?;
|
||||
|
||||
let config = PayloadConfig {
|
||||
parent_header: Arc::new(parent),
|
||||
attributes,
|
||||
extra_data: Default::default(),
|
||||
};
|
||||
let config = PayloadConfig { parent_header: Arc::new(parent), attributes };
|
||||
let ctx = OpPayloadBuilderCtx {
|
||||
evm_config: self.evm_config.clone(),
|
||||
chain_spec: client.chain_spec(),
|
||||
@ -621,7 +617,7 @@ impl<EvmConfig> OpPayloadBuilderCtx<EvmConfig> {
|
||||
|
||||
/// Returns the extra data for the block.
|
||||
///
|
||||
/// After holocene this extracts the extradata from the paylpad
|
||||
/// After holocene this extracts the extra data from the payload
|
||||
pub fn extra_data(&self) -> Result<Bytes, PayloadBuilderError> {
|
||||
if self.is_holocene_active() {
|
||||
self.attributes()
|
||||
@ -632,7 +628,7 @@ impl<EvmConfig> OpPayloadBuilderCtx<EvmConfig> {
|
||||
)
|
||||
.map_err(PayloadBuilderError::other)
|
||||
} else {
|
||||
Ok(self.config.extra_data.clone())
|
||||
Ok(Default::default())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user