feat(op): add builder methods for tx conditional and pool overrides (#14741)

This commit is contained in:
Dan Cline
2025-02-27 02:32:02 -05:00
committed by GitHub
parent 1e48668bf2
commit d291d52954

View File

@@ -452,10 +452,20 @@ impl<T> Default for OpPoolBuilder<T> {
}
impl<T> OpPoolBuilder<T> {
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<Node, T> PoolBuilder<Node> for OpPoolBuilder<T>