diff --git a/contrib/kaitai-struct-files/files/alpha__constants.ksy b/contrib/kaitai-struct-files/files/alpha__constants.ksy index ea6dbc136a105d6ee935c9f98f6682cbee2178f0..dcf100fd8c7e2824f491be05902911c0389e0dd1 100644 --- a/contrib/kaitai-struct-files/files/alpha__constants.ksy +++ b/contrib/kaitai-struct-files/files/alpha__constants.ksy @@ -44,11 +44,11 @@ types: type: u1 enum: bool - id: number_of_slots - type: s2 + type: u2 - id: attestation_lag - type: s2 + type: u1 - id: attestation_threshold - type: s2 + type: u1 - id: redundancy_factor type: u1 - id: page_size diff --git a/contrib/kaitai-struct-files/files/alpha__constants__parametric.ksy b/contrib/kaitai-struct-files/files/alpha__constants__parametric.ksy index fde9e41fd9ed4e5bb932483e26f5d50c218f11a5..b187e1770c59a3856cf4843df6b900cf2dc1e113 100644 --- a/contrib/kaitai-struct-files/files/alpha__constants__parametric.ksy +++ b/contrib/kaitai-struct-files/files/alpha__constants__parametric.ksy @@ -44,11 +44,11 @@ types: type: u1 enum: bool - id: number_of_slots - type: s2 + type: u2 - id: attestation_lag - type: s2 + type: u1 - id: attestation_threshold - type: s2 + type: u1 - id: redundancy_factor type: u1 - id: page_size diff --git a/contrib/kaitai-struct-files/files/alpha__parameters.ksy b/contrib/kaitai-struct-files/files/alpha__parameters.ksy index 9752e50d273a0ed09fedc178fd6cb3c6a22abc14..23d37f392b7e3e09e2616c42fcb34973e8279d71 100644 --- a/contrib/kaitai-struct-files/files/alpha__parameters.ksy +++ b/contrib/kaitai-struct-files/files/alpha__parameters.ksy @@ -178,11 +178,11 @@ types: type: u1 enum: bool - id: number_of_slots - type: s2 + type: u2 - id: attestation_lag - type: s2 + type: u1 - id: attestation_threshold - type: s2 + type: u1 - id: redundancy_factor type: u1 - id: page_size diff --git a/src/proto_alpha/lib_protocol/constants_parametric_repr.ml b/src/proto_alpha/lib_protocol/constants_parametric_repr.ml index 345a9ed22897bde583fb0f0b0ff418b400a6f455..8bac5ec48cb187186116a92b04b61ef522aca72b 100644 --- a/src/proto_alpha/lib_protocol/constants_parametric_repr.ml +++ b/src/proto_alpha/lib_protocol/constants_parametric_repr.ml @@ -69,9 +69,9 @@ let dal_encoding = (obj5 (req "feature_enable" bool) (req "incentives_enable" bool) - (req "number_of_slots" int16) - (req "attestation_lag" int16) - (req "attestation_threshold" int16)) + (req "number_of_slots" uint16) + (req "attestation_lag" uint8) + (req "attestation_threshold" uint8)) Dal.parameters_encoding) (* The encoded representation of this type is stored in the context as