File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
use crate :: unsupported_version_rejection;
2
- use crate :: version:: { V1 , V2 } ;
2
+ use crate :: version:: { add_consensus_version_header , V1 , V2 } ;
3
3
use beacon_chain:: { BeaconChain , BeaconChainTypes } ;
4
4
use eth2:: types:: { EndpointVersion , Hash256 , Slot } ;
5
5
use std:: sync:: Arc ;
@@ -40,7 +40,10 @@ pub fn get_aggregate_attestation<T: BeaconChainTypes>(
40
40
metadata : EmptyMetadata { } ,
41
41
data : aggregate_attestation,
42
42
} ;
43
- Ok ( warp:: reply:: json ( & fork_versioned_response) . into_response ( ) )
43
+ Ok ( add_consensus_version_header (
44
+ warp:: reply:: json ( & fork_versioned_response) . into_response ( ) ,
45
+ fork_name,
46
+ ) )
44
47
} else if endpoint_version == V1 {
45
48
let aggregate_attestation = chain
46
49
. get_pre_electra_aggregated_attestation_by_slot_and_root ( slot, attestation_data_root)
You can’t perform that action at this time.
0 commit comments