From d291d52954a99fac0d983eee299abd3be299ac5c Mon Sep 17 00:00:00 2001 From: Dan Cline <6798349+Rjected@users.noreply.github.com> Date: Thu, 27 Feb 2025 02:32:02 -0500 Subject: [PATCH] feat(op): add builder methods for tx conditional and pool overrides (#14741) --- crates/optimism/node/src/node.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/crates/optimism/node/src/node.rs b/crates/optimism/node/src/node.rs index c8e59ea776..ccaffe55f3 100644 --- a/crates/optimism/node/src/node.rs +++ b/crates/optimism/node/src/node.rs @@ -452,10 +452,20 @@ impl Default for OpPoolBuilder { } impl OpPoolBuilder { - fn with_enable_tx_conditional(mut self, enable_tx_conditional: bool) -> Self { + /// Sets the `enable_tx_conditional` flag on the pool builder. + pub fn with_enable_tx_conditional(mut self, enable_tx_conditional: bool) -> Self { self.enable_tx_conditional = enable_tx_conditional; self } + + /// Sets the [`PoolBuilderConfigOverrides`] on the pool builder. + pub fn with_pool_config_overrides( + mut self, + pool_config_overrides: PoolBuilderConfigOverrides, + ) -> Self { + self.pool_config_overrides = pool_config_overrides; + self + } } impl PoolBuilder for OpPoolBuilder