@@ -84,8 +84,6 @@ const EXECUTION_BLOCKS_LRU_CACHE_SIZE: usize = 128;
84
84
const DEFAULT_SUGGESTED_FEE_RECIPIENT : [ u8 ; 20 ] =
85
85
[ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 ] ;
86
86
87
- const CONFIG_POLL_INTERVAL : Duration = Duration :: from_secs ( 60 ) ;
88
-
89
87
/// A payload alongside some information about where it came from.
90
88
pub enum ProvenancedPayload < P > {
91
89
/// A good ol' fashioned farm-to-table payload from your local EE.
@@ -551,24 +549,6 @@ impl<T: EthSpec> ExecutionLayer<T> {
551
549
self . spawn ( preparation_cleaner, "exec_preparation_cleanup" ) ;
552
550
}
553
551
554
- /// Spawns a routine that polls the `exchange_transition_configuration` endpoint.
555
- pub fn spawn_transition_configuration_poll ( & self , spec : ChainSpec ) {
556
- let routine = |el : ExecutionLayer < T > | async move {
557
- loop {
558
- if let Err ( e) = el. exchange_transition_configuration ( & spec) . await {
559
- error ! (
560
- el. log( ) ,
561
- "Failed to check transition config" ;
562
- "error" => ?e
563
- ) ;
564
- }
565
- sleep ( CONFIG_POLL_INTERVAL ) . await ;
566
- }
567
- } ;
568
-
569
- self . spawn ( routine, "exec_config_poll" ) ;
570
- }
571
-
572
552
/// Returns `true` if the execution engine is synced and reachable.
573
553
pub async fn is_synced ( & self ) -> bool {
574
554
self . engine ( ) . is_synced ( ) . await
@@ -1391,53 +1371,6 @@ impl<T: EthSpec> ExecutionLayer<T> {
1391
1371
. map_err ( Error :: EngineError )
1392
1372
}
1393
1373
1394
- pub async fn exchange_transition_configuration ( & self , spec : & ChainSpec ) -> Result < ( ) , Error > {
1395
- let local = TransitionConfigurationV1 {
1396
- terminal_total_difficulty : spec. terminal_total_difficulty ,
1397
- terminal_block_hash : spec. terminal_block_hash ,
1398
- terminal_block_number : 0 ,
1399
- } ;
1400
-
1401
- let result = self
1402
- . engine ( )
1403
- . request ( |engine| engine. api . exchange_transition_configuration_v1 ( local) )
1404
- . await ;
1405
-
1406
- match result {
1407
- Ok ( remote) => {
1408
- if local. terminal_total_difficulty != remote. terminal_total_difficulty
1409
- || local. terminal_block_hash != remote. terminal_block_hash
1410
- {
1411
- error ! (
1412
- self . log( ) ,
1413
- "Execution client config mismatch" ;
1414
- "msg" => "ensure lighthouse and the execution client are up-to-date and \
1415
- configured consistently",
1416
- "remote" => ?remote,
1417
- "local" => ?local,
1418
- ) ;
1419
- Err ( Error :: EngineError ( Box :: new ( EngineError :: Api {
1420
- error : ApiError :: TransitionConfigurationMismatch ,
1421
- } ) ) )
1422
- } else {
1423
- debug ! (
1424
- self . log( ) ,
1425
- "Execution client config is OK" ;
1426
- ) ;
1427
- Ok ( ( ) )
1428
- }
1429
- }
1430
- Err ( e) => {
1431
- error ! (
1432
- self . log( ) ,
1433
- "Unable to get transition config" ;
1434
- "error" => ?e,
1435
- ) ;
1436
- Err ( Error :: EngineError ( Box :: new ( e) ) )
1437
- }
1438
- }
1439
- }
1440
-
1441
1374
/// Returns the execution engine capabilities resulting from a call to
1442
1375
/// engine_exchangeCapabilities. If the capabilities cache is not populated,
1443
1376
/// or if it is populated with a cached result of age >= `age_limit`, this
0 commit comments