Skip to content

Commit a3ff8ea

Browse files
authored
refactor: clean up flashblocks context in payload builder (#297)
1 parent fa24368 commit a3ff8ea

File tree

2 files changed

+178
-147
lines changed

2 files changed

+178
-147
lines changed

crates/op-rbuilder/src/builders/context.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ pub struct OpPayloadBuilderCtx<ExtraCtx: Debug + Default = ()> {
7474
}
7575

7676
impl<ExtraCtx: Debug + Default> OpPayloadBuilderCtx<ExtraCtx> {
77+
pub(super) fn with_cancel(self, cancel: CancellationToken) -> Self {
78+
Self { cancel, ..self }
79+
}
80+
81+
pub(super) fn with_extra_ctx(self, extra_ctx: ExtraCtx) -> Self {
82+
Self { extra_ctx, ..self }
83+
}
84+
7785
/// Returns the parent block the payload will be build on.
7886
pub fn parent(&self) -> &SealedHeader {
7987
&self.config.parent_header
@@ -340,7 +348,7 @@ impl<ExtraCtx: Debug + Default> OpPayloadBuilderCtx<ExtraCtx> {
340348
let tx_da_limit = self.da_config.max_da_tx_size();
341349
let mut evm = self.evm_config.evm_with_env(&mut *db, self.evm_env.clone());
342350

343-
info!(
351+
debug!(
344352
target: "payload_builder",
345353
message = "Executing best transactions",
346354
block_da_limit = ?block_da_limit,

0 commit comments

Comments
 (0)