|
13 | 13 |
|
14 | 14 | package tech.pegasys.teku.beaconrestapi;
|
15 | 15 |
|
| 16 | +import static tech.pegasys.teku.ethereum.json.types.EthereumTypes.MILESTONE_TYPE; |
16 | 17 | import static tech.pegasys.teku.ethereum.json.types.EthereumTypes.SIGNATURE_TYPE;
|
17 | 18 | import static tech.pegasys.teku.infrastructure.http.RestApiConstants.ATTESTATION_DATA_ROOT;
|
18 | 19 | import static tech.pegasys.teku.infrastructure.http.RestApiConstants.BEACON_BLOCK_ROOT;
|
|
24 | 25 | import static tech.pegasys.teku.infrastructure.http.RestApiConstants.EPOCH;
|
25 | 26 | import static tech.pegasys.teku.infrastructure.http.RestApiConstants.EPOCH_QUERY_DESCRIPTION;
|
26 | 27 | import static tech.pegasys.teku.infrastructure.http.RestApiConstants.GRAFFITI;
|
| 28 | +import static tech.pegasys.teku.infrastructure.http.RestApiConstants.HEADER_CONSENSUS_VERSION; |
27 | 29 | import static tech.pegasys.teku.infrastructure.http.RestApiConstants.INDEX;
|
28 | 30 | import static tech.pegasys.teku.infrastructure.http.RestApiConstants.PARAM_BLOCK_ID;
|
29 | 31 | import static tech.pegasys.teku.infrastructure.http.RestApiConstants.PARAM_BLOCK_ID_DESCRIPTION;
|
|
71 | 73 | import tech.pegasys.teku.infrastructure.json.types.StringValueTypeDefinition;
|
72 | 74 | import tech.pegasys.teku.infrastructure.restapi.endpoints.ParameterMetadata;
|
73 | 75 | import tech.pegasys.teku.infrastructure.unsigned.UInt64;
|
| 76 | +import tech.pegasys.teku.spec.SpecMilestone; |
74 | 77 | import tech.pegasys.teku.spec.datastructures.blocks.SignedBeaconBlockHeader;
|
75 | 78 | import tech.pegasys.teku.spec.datastructures.metadata.BlockAndMetaData;
|
76 | 79 | import tech.pegasys.teku.spec.datastructures.validator.BroadcastValidationLevel;
|
@@ -241,6 +244,9 @@ public class BeaconRestApiTypes {
|
241 | 244 | PARAMETER_BROADCAST_VALIDATION =
|
242 | 245 | new ParameterMetadata<>(PARAM_BROADCAST_VALIDATION, BROADCAST_VALIDATION_VALUE);
|
243 | 246 |
|
| 247 | + public static final ParameterMetadata<SpecMilestone> ETH_CONSENSUS_VERSION_TYPE = |
| 248 | + new ParameterMetadata<>(HEADER_CONSENSUS_VERSION, MILESTONE_TYPE); |
| 249 | + |
244 | 250 | @SuppressWarnings("JavaCase")
|
245 | 251 | public enum BroadcastValidationParameter {
|
246 | 252 | gossip,
|
|
0 commit comments