From 9631d73c38aba71d9820064e97d513fb48aa32a8 Mon Sep 17 00:00:00 2001 From: Eugen Zalinescu Date: Tue, 13 Feb 2024 09:42:16 +0100 Subject: [PATCH 1/2] Alpha/DAL: update encoding of some parameters to uintX --- src/proto_alpha/lib_protocol/constants_parametric_repr.ml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/proto_alpha/lib_protocol/constants_parametric_repr.ml b/src/proto_alpha/lib_protocol/constants_parametric_repr.ml index 345a9ed22897..8bac5ec48cb1 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 -- GitLab From 5543f1be19ab6323aaab30a1465fee62ca62f1a3 Mon Sep 17 00:00:00 2001 From: Eugen Zalinescu Date: Tue, 13 Feb 2024 09:58:39 +0100 Subject: [PATCH 2/2] Kaitai: update struct files --- contrib/kaitai-struct-files/files/alpha__constants.ksy | 6 +++--- .../files/alpha__constants__parametric.ksy | 6 +++--- contrib/kaitai-struct-files/files/alpha__parameters.ksy | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/contrib/kaitai-struct-files/files/alpha__constants.ksy b/contrib/kaitai-struct-files/files/alpha__constants.ksy index ea6dbc136a10..dcf100fd8c7e 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 fde9e41fd9ed..b187e1770c59 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 9752e50d273a..23d37f392b7e 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 -- GitLab