@@ -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 ,
@@ -256,8 +256,6 @@ pub fn prometheus_metrics() -> warp::filters::log::Log<impl Fn(warp::filters::lo
256
256
. or_else ( || starts_with ( "v2/validator/aggregate_attestation" ) )
257
257
. or_else ( || starts_with ( "v1/validator/attestation_data" ) )
258
258
. or_else ( || starts_with ( "v1/validator/beacon_committee_subscriptions" ) )
259
- . or_else ( || starts_with ( "v1/validator/blinded_blocks" ) )
260
- . or_else ( || starts_with ( "v2/validator/blinded_blocks" ) )
261
259
. or_else ( || starts_with ( "v1/validator/blocks" ) )
262
260
. or_else ( || starts_with ( "v2/validator/blocks" ) )
263
261
. or_else ( || starts_with ( "v3/validator/blocks" ) )
@@ -3430,35 +3428,6 @@ pub fn serve<T: BeaconChainTypes>(
3430
3428
} ,
3431
3429
) ;
3432
3430
3433
- // GET validator/blinded_blocks/{slot}
3434
- let get_validator_blinded_blocks = eth_v1
3435
- . and ( warp:: path ( "validator" ) )
3436
- . and ( warp:: path ( "blinded_blocks" ) )
3437
- . and ( warp:: path:: param :: < Slot > ( ) . or_else ( |_| async {
3438
- Err ( warp_utils:: reject:: custom_bad_request (
3439
- "Invalid slot" . to_string ( ) ,
3440
- ) )
3441
- } ) )
3442
- . and ( warp:: path:: end ( ) )
3443
- . and ( not_while_syncing_filter. clone ( ) )
3444
- . and ( warp:: query :: < api_types:: ValidatorBlocksQuery > ( ) )
3445
- . and ( warp:: header:: optional :: < api_types:: Accept > ( "accept" ) )
3446
- . and ( task_spawner_filter. clone ( ) )
3447
- . and ( chain_filter. clone ( ) )
3448
- . then (
3449
- |slot : Slot ,
3450
- not_synced_filter : Result < ( ) , Rejection > ,
3451
- query : api_types:: ValidatorBlocksQuery ,
3452
- accept_header : Option < api_types:: Accept > ,
3453
- task_spawner : TaskSpawner < T :: EthSpec > ,
3454
- chain : Arc < BeaconChain < T > > | {
3455
- task_spawner. spawn_async_with_rejection ( Priority :: P0 , async move {
3456
- not_synced_filter?;
3457
- produce_blinded_block_v2 ( accept_header, chain, slot, query) . await
3458
- } )
3459
- } ,
3460
- ) ;
3461
-
3462
3431
// GET validator/attestation_data?slot,committee_index
3463
3432
let get_validator_attestation_data = eth_v1
3464
3433
. and ( warp:: path ( "validator" ) )
@@ -4919,7 +4888,6 @@ pub fn serve<T: BeaconChainTypes>(
4919
4888
. uor ( get_node_peer_count)
4920
4889
. uor ( get_validator_duties_proposer)
4921
4890
. uor ( get_validator_blocks)
4922
- . uor ( get_validator_blinded_blocks)
4923
4891
. uor ( get_validator_attestation_data)
4924
4892
. uor ( get_validator_aggregate_attestation)
4925
4893
. uor ( get_validator_sync_committee_contribution)
0 commit comments