@@ -4265,36 +4265,6 @@ pub fn serve<T: BeaconChainTypes>(
42654265 } ,
42664266 ) ;
42674267
4268- // GET lighthouse/beacon/states/{state_id}/ssz
4269- let get_lighthouse_beacon_states_ssz = warp:: path ( "lighthouse" )
4270- . and ( warp:: path ( "beacon" ) )
4271- . and ( warp:: path ( "states" ) )
4272- . and ( warp:: path:: param :: < StateId > ( ) )
4273- . and ( warp:: path ( "ssz" ) )
4274- . and ( warp:: path:: end ( ) )
4275- . and ( task_spawner_filter. clone ( ) )
4276- . and ( chain_filter. clone ( ) )
4277- . then (
4278- |state_id : StateId ,
4279- task_spawner : TaskSpawner < T :: EthSpec > ,
4280- chain : Arc < BeaconChain < T > > | {
4281- task_spawner. blocking_response_task ( Priority :: P1 , move || {
4282- // This debug endpoint provides no indication of optimistic status.
4283- let ( state, _execution_optimistic, _finalized) = state_id. state ( & chain) ?;
4284- Response :: builder ( )
4285- . status ( 200 )
4286- . body ( state. as_ssz_bytes ( ) . into ( ) )
4287- . map ( |res : Response < Body > | add_ssz_content_type_header ( res) )
4288- . map_err ( |e| {
4289- warp_utils:: reject:: custom_server_error ( format ! (
4290- "failed to create response: {}" ,
4291- e
4292- ) )
4293- } )
4294- } )
4295- } ,
4296- ) ;
4297-
42984268 // GET lighthouse/staking
42994269 let get_lighthouse_staking = warp:: path ( "lighthouse" )
43004270 . and ( warp:: path ( "staking" ) )
@@ -4629,7 +4599,6 @@ pub fn serve<T: BeaconChainTypes>(
46294599 . uor ( get_lighthouse_eth1_syncing)
46304600 . uor ( get_lighthouse_eth1_block_cache)
46314601 . uor ( get_lighthouse_eth1_deposit_cache)
4632- . uor ( get_lighthouse_beacon_states_ssz)
46334602 . uor ( get_lighthouse_staking)
46344603 . uor ( get_lighthouse_database_info)
46354604 . uor ( get_lighthouse_block_rewards)
0 commit comments