From cde6f5182e98099311a68428bafe03f5246a1b04 Mon Sep 17 00:00:00 2001 From: Ferran Borreguero Date: Tue, 17 Dec 2024 09:02:05 +0000 Subject: [PATCH 1/2] Add preset builders to the default config --- config-playground.toml | 18 +--------- crates/rbuilder/src/live_builder/config.rs | 41 ++++++++++++++++++++++ 2 files changed, 42 insertions(+), 17 deletions(-) diff --git a/config-playground.toml b/config-playground.toml index 2bee586f..d4a7b695 100644 --- a/config-playground.toml +++ b/config-playground.toml @@ -25,7 +25,7 @@ dry_run_validation_url = "http://localhost:8545" ignore_cancellable_orders = true sbundle_mergeabe_signers = [] -live_builders = ["mp-ordering"] +live_builders = ["mp-ordering", "mgp-ordering"] [[relays]] name = "custom" @@ -33,19 +33,3 @@ url = "http://0xac6e77dfe25ecd6110b8e780608cce0dab71fdd5ebea22a16c0205200f2f8e2e priority = 0 use_ssz_for_submit = false use_gzip_for_submit = false - -[[builders]] -name = "mgp-ordering" -algo = "ordering-builder" -discard_txs = true -sorting = "mev-gas-price" -failed_order_retries = 1 -drop_failed_orders = true - -[[builders]] -name = "mp-ordering" -algo = "ordering-builder" -discard_txs = true -sorting = "max-profit" -failed_order_retries = 1 -drop_failed_orders = true diff --git a/crates/rbuilder/src/live_builder/config.rs b/crates/rbuilder/src/live_builder/config.rs index 508787d7..64d8d7c5 100644 --- a/crates/rbuilder/src/live_builder/config.rs +++ b/crates/rbuilder/src/live_builder/config.rs @@ -422,6 +422,47 @@ impl Default for Config { build_duration_deadline_ms: None, }), }, + BuilderConfig { + name: String::from("mp-ordering-deadline"), + builder: SpecificBuilderConfig::OrderingBuilder(OrderingBuilderConfig { + discard_txs: true, + sorting: Sorting::MaxProfit, + failed_order_retries: 1, + drop_failed_orders: true, + coinbase_payment: false, + build_duration_deadline_ms: Some(30), + }), + }, + BuilderConfig { + name: String::from("mp-ordering-cb"), + builder: SpecificBuilderConfig::OrderingBuilder(OrderingBuilderConfig { + discard_txs: true, + sorting: Sorting::MaxProfit, + failed_order_retries: 1, + drop_failed_orders: true, + coinbase_payment: true, + build_duration_deadline_ms: None, + }), + }, + BuilderConfig { + name: String::from("mgp-ordering-default"), + builder: SpecificBuilderConfig::OrderingBuilder(OrderingBuilderConfig { + discard_txs: true, + sorting: Sorting::MevGasPrice, + failed_order_retries: 1, + drop_failed_orders: false, + coinbase_payment: false, + build_duration_deadline_ms: None, + }), + }, + BuilderConfig { + name: String::from("parallel"), + builder: SpecificBuilderConfig::ParallelBuilder(ParallelBuilderConfig { + discard_txs: true, + num_threads: 25, + coinbase_payment: false, + }), + }, ], } } From 45ad71e112729abc71fe0fd842f2f2f6c23fca86 Mon Sep 17 00:00:00 2001 From: Ferran Borreguero Date: Tue, 17 Dec 2024 09:04:49 +0000 Subject: [PATCH 2/2] Add parallel to playground default --- config-playground.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config-playground.toml b/config-playground.toml index d4a7b695..3ea4da6c 100644 --- a/config-playground.toml +++ b/config-playground.toml @@ -25,7 +25,7 @@ dry_run_validation_url = "http://localhost:8545" ignore_cancellable_orders = true sbundle_mergeabe_signers = [] -live_builders = ["mp-ordering", "mgp-ordering"] +live_builders = ["mp-ordering", "mgp-ordering", "parallel"] [[relays]] name = "custom"