@@ -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:: beacon_response;
38
38
use beacon_chain:: {
39
39
attestation_verification:: VerifiedAttestation , observed_operations:: ObservationOutcome ,
@@ -253,8 +253,6 @@ pub fn prometheus_metrics() -> warp::filters::log::Log<impl Fn(warp::filters::lo
253
253
. or_else ( || starts_with ( "v2/validator/aggregate_attestation" ) )
254
254
. or_else ( || starts_with ( "v1/validator/attestation_data" ) )
255
255
. or_else ( || starts_with ( "v1/validator/beacon_committee_subscriptions" ) )
256
- . or_else ( || starts_with ( "v1/validator/blinded_blocks" ) )
257
- . or_else ( || starts_with ( "v2/validator/blinded_blocks" ) )
258
256
. or_else ( || starts_with ( "v1/validator/blocks" ) )
259
257
. or_else ( || starts_with ( "v2/validator/blocks" ) )
260
258
. or_else ( || starts_with ( "v3/validator/blocks" ) )
@@ -3422,35 +3420,6 @@ pub fn serve<T: BeaconChainTypes>(
3422
3420
} ,
3423
3421
) ;
3424
3422
3425
- // GET validator/blinded_blocks/{slot}
3426
- let get_validator_blinded_blocks = eth_v1
3427
- . and ( warp:: path ( "validator" ) )
3428
- . and ( warp:: path ( "blinded_blocks" ) )
3429
- . and ( warp:: path:: param :: < Slot > ( ) . or_else ( |_| async {
3430
- Err ( warp_utils:: reject:: custom_bad_request (
3431
- "Invalid slot" . to_string ( ) ,
3432
- ) )
3433
- } ) )
3434
- . and ( warp:: path:: end ( ) )
3435
- . and ( not_while_syncing_filter. clone ( ) )
3436
- . and ( warp:: query :: < api_types:: ValidatorBlocksQuery > ( ) )
3437
- . and ( warp:: header:: optional :: < api_types:: Accept > ( "accept" ) )
3438
- . and ( task_spawner_filter. clone ( ) )
3439
- . and ( chain_filter. clone ( ) )
3440
- . then (
3441
- |slot : Slot ,
3442
- not_synced_filter : Result < ( ) , Rejection > ,
3443
- query : api_types:: ValidatorBlocksQuery ,
3444
- accept_header : Option < api_types:: Accept > ,
3445
- task_spawner : TaskSpawner < T :: EthSpec > ,
3446
- chain : Arc < BeaconChain < T > > | {
3447
- task_spawner. spawn_async_with_rejection ( Priority :: P0 , async move {
3448
- not_synced_filter?;
3449
- produce_blinded_block_v2 ( accept_header, chain, slot, query) . await
3450
- } )
3451
- } ,
3452
- ) ;
3453
-
3454
3423
// GET validator/attestation_data?slot,committee_index
3455
3424
let get_validator_attestation_data = eth_v1
3456
3425
. and ( warp:: path ( "validator" ) )
@@ -4954,7 +4923,6 @@ pub fn serve<T: BeaconChainTypes>(
4954
4923
. uor ( get_node_peer_count)
4955
4924
. uor ( get_validator_duties_proposer)
4956
4925
. uor ( get_validator_blocks)
4957
- . uor ( get_validator_blinded_blocks)
4958
4926
. uor ( get_validator_attestation_data)
4959
4927
. uor ( get_validator_aggregate_attestation)
4960
4928
. uor ( get_validator_sync_committee_contribution)
0 commit comments