@@ -33,7 +33,7 @@ mod validator_inclusion;
33
33
mod validators;
34
34
mod version;
35
35
use crate :: light_client:: { get_light_client_bootstrap, get_light_client_updates} ;
36
- use crate :: produce_block:: { produce_blinded_block_v2 , produce_block_v2, produce_block_v3} ;
36
+ use crate :: produce_block:: { produce_block_v2, produce_block_v3} ;
37
37
use crate :: version:: fork_versioned_response;
38
38
use beacon_chain:: {
39
39
attestation_verification:: VerifiedAttestation , observed_operations:: ObservationOutcome ,
@@ -257,8 +257,6 @@ pub fn prometheus_metrics() -> warp::filters::log::Log<impl Fn(warp::filters::lo
257
257
. or_else ( || starts_with ( "v2/validator/aggregate_attestation" ) )
258
258
. or_else ( || starts_with ( "v1/validator/attestation_data" ) )
259
259
. or_else ( || starts_with ( "v1/validator/beacon_committee_subscriptions" ) )
260
- . or_else ( || starts_with ( "v1/validator/blinded_blocks" ) )
261
- . or_else ( || starts_with ( "v2/validator/blinded_blocks" ) )
262
260
. or_else ( || starts_with ( "v1/validator/blocks" ) )
263
261
. or_else ( || starts_with ( "v2/validator/blocks" ) )
264
262
. or_else ( || starts_with ( "v3/validator/blocks" ) )
@@ -3377,36 +3375,6 @@ pub fn serve<T: BeaconChainTypes>(
3377
3375
} ,
3378
3376
) ;
3379
3377
3380
- // GET validator/blinded_blocks/{slot}
3381
- let get_validator_blinded_blocks = eth_v1
3382
- . and ( warp:: path ( "validator" ) )
3383
- . and ( warp:: path ( "blinded_blocks" ) )
3384
- . and ( warp:: path:: param :: < Slot > ( ) . or_else ( |_| async {
3385
- Err ( warp_utils:: reject:: custom_bad_request (
3386
- "Invalid slot" . to_string ( ) ,
3387
- ) )
3388
- } ) )
3389
- . and ( warp:: path:: end ( ) )
3390
- . and ( not_while_syncing_filter. clone ( ) )
3391
- . and ( warp:: query :: < api_types:: ValidatorBlocksQuery > ( ) )
3392
- . and ( warp:: header:: optional :: < api_types:: Accept > ( "accept" ) )
3393
- . and ( task_spawner_filter. clone ( ) )
3394
- . and ( chain_filter. clone ( ) )
3395
- . then (
3396
- |slot : Slot ,
3397
- not_synced_filter : Result < ( ) , Rejection > ,
3398
- query : api_types:: ValidatorBlocksQuery ,
3399
- accept_header : Option < api_types:: Accept > ,
3400
- task_spawner : TaskSpawner < T :: EthSpec > ,
3401
- chain : Arc < BeaconChain < T > > | {
3402
- task_spawner. spawn_async_with_rejection ( Priority :: P0 , async move {
3403
- not_synced_filter?;
3404
- produce_blinded_block_v2 ( EndpointVersion ( 2 ) , accept_header, chain, slot, query)
3405
- . await
3406
- } )
3407
- } ,
3408
- ) ;
3409
-
3410
3378
// GET validator/attestation_data?slot,committee_index
3411
3379
let get_validator_attestation_data = eth_v1
3412
3380
. and ( warp:: path ( "validator" ) )
@@ -4867,7 +4835,6 @@ pub fn serve<T: BeaconChainTypes>(
4867
4835
. uor ( get_node_peer_count)
4868
4836
. uor ( get_validator_duties_proposer)
4869
4837
. uor ( get_validator_blocks)
4870
- . uor ( get_validator_blinded_blocks)
4871
4838
. uor ( get_validator_attestation_data)
4872
4839
. uor ( get_validator_aggregate_attestation)
4873
4840
. uor ( get_validator_sync_committee_contribution)
0 commit comments