Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion crates/op-rbuilder/src/builders/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ pub struct OpPayloadBuilderCtx<ExtraCtx: Debug + Default = ()> {
}

impl<ExtraCtx: Debug + Default> OpPayloadBuilderCtx<ExtraCtx> {
pub(super) fn with_cancel(self, cancel: CancellationToken) -> Self {
Self { cancel, ..self }
}

pub(super) fn with_extra_ctx(self, extra_ctx: ExtraCtx) -> Self {
Self { extra_ctx, ..self }
}

/// Returns the parent block the payload will be build on.
pub(super) fn parent(&self) -> &SealedHeader {
&self.config.parent_header
Expand Down Expand Up @@ -330,7 +338,7 @@ impl<ExtraCtx: Debug + Default> OpPayloadBuilderCtx<ExtraCtx> {
let tx_da_limit = self.da_config.max_da_tx_size();
let mut evm = self.evm_config.evm_with_env(&mut *db, self.evm_env.clone());

info!(
debug!(
target: "payload_builder",
message = "Executing best transactions",
block_da_limit = ?block_da_limit,
Expand Down
Loading
Loading