@@ -78,6 +78,7 @@ struct ApiTester {
78
78
struct ApiTesterConfig {
79
79
spec : ChainSpec ,
80
80
retain_historic_states : bool ,
81
+ builder_threshold : Option < u128 > ,
81
82
}
82
83
83
84
impl Default for ApiTesterConfig {
@@ -87,6 +88,7 @@ impl Default for ApiTesterConfig {
87
88
Self {
88
89
spec,
89
90
retain_historic_states : false ,
91
+ builder_threshold : None ,
90
92
}
91
93
}
92
94
}
@@ -128,7 +130,7 @@ impl ApiTester {
128
130
. logger ( logging:: test_logger ( ) )
129
131
. deterministic_keypairs ( VALIDATOR_COUNT )
130
132
. fresh_ephemeral_store ( )
131
- . mock_execution_layer_with_config ( )
133
+ . mock_execution_layer_with_config ( config . builder_threshold )
132
134
. build ( ) ;
133
135
134
136
harness
@@ -403,6 +405,7 @@ impl ApiTester {
403
405
404
406
pub async fn new_mev_tester_no_builder_threshold ( ) -> Self {
405
407
let mut config = ApiTesterConfig {
408
+ builder_threshold : Some ( 0 ) ,
406
409
retain_historic_states : false ,
407
410
spec : E :: default_spec ( ) ,
408
411
} ;
@@ -5350,6 +5353,7 @@ async fn builder_payload_chosen_by_profit() {
5350
5353
#[ tokio:: test( flavor = "multi_thread" , worker_threads = 2 ) ]
5351
5354
async fn builder_works_post_capella ( ) {
5352
5355
let mut config = ApiTesterConfig {
5356
+ builder_threshold : Some ( 0 ) ,
5353
5357
retain_historic_states : false ,
5354
5358
spec : E :: default_spec ( ) ,
5355
5359
} ;
@@ -5370,6 +5374,7 @@ async fn builder_works_post_capella() {
5370
5374
#[ tokio:: test( flavor = "multi_thread" , worker_threads = 2 ) ]
5371
5375
async fn builder_works_post_deneb ( ) {
5372
5376
let mut config = ApiTesterConfig {
5377
+ builder_threshold : Some ( 0 ) ,
5373
5378
retain_historic_states : false ,
5374
5379
spec : E :: default_spec ( ) ,
5375
5380
} ;
0 commit comments