diff --git a/config-playground.toml b/config-playground.toml index 2bee586f..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"] +live_builders = ["mp-ordering", "mgp-ordering", "parallel"] [[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, + }), + }, ], } }