diff --git a/etherlink/tezt/tests/expected/evm_sequencer.ml/Alpha- Regression test for the FA deposit and withdrawal events.out b/etherlink/tezt/tests/expected/evm_sequencer.ml/Alpha- Regression test for the FA deposit and withdrawal events.out index a79bfc7bacc3fca3126a55bbe6b86a1375bda947..8babebe3fadb68a1bc39c727077d1531e6376b5c 100644 --- a/etherlink/tezt/tests/expected/evm_sequencer.ml/Alpha- Regression test for the FA deposit and withdrawal events.out +++ b/etherlink/tezt/tests/expected/evm_sequencer.ml/Alpha- Regression test for the FA deposit and withdrawal events.out @@ -3,19 +3,19 @@ Address: 0xff00000000000000000000000000000000000002 Topics: - 0x7ee7a1de9c18ce695c95b8b19fbdf26cce3544e3ca9e08c9f487776783d7599f -- 0xd73f08b85d698e4307583ab28caa091500cfe976c9aa46c957e963246b4c217c +- 0x83fa75cb8976a0a19a558662f9a23b43ee119469ca5d1b1c25ab81b822280b27 Data: 0x0000000000000000000000006ce4d79d4e77402e1ef3417fdda433aa744c6e1c0000000000000000000000006ce4d79d4e77402e1ef3417fdda433aa744c6e1c000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000002 # FA Withdrawal ## Log 0 Address: 0xff00000000000000000000000000000000000002 Topics: - 0xab68450c9e546f6062a861eebf8ec5bbd41b4425e26b20199c91227c7f9038ca -- 0xd73f08b85d698e4307583ab28caa091500cfe976c9aa46c957e963246b4c217c -Data: 0x0000000000000000000000006ce4d79d4e77402e1ef3417fdda433aa744c6e1c0000000000000000000000006ce4d79d4e77402e1ef3417fdda433aa744c6e1c000000000000000000000000000000000000000000000000000000000000000001570e3b77b3e1db0ef4da1a0be85767bd91e158d1000000000000000000000000000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000000 +- 0x83fa75cb8976a0a19a558662f9a23b43ee119469ca5d1b1c25ab81b822280b27 +Data: 0x0000000000000000000000006ce4d79d4e77402e1ef3417fdda433aa744c6e1c0000000000000000000000006ce4d79d4e77402e1ef3417fdda433aa744c6e1c000000000000000000000000000000000000000000000000000000000000000001a1bb750903c3e419b322ee388e74e3f97e00f09e000000000000000000000000000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000000 # FA Fast Withdrawal ## Log 0 Address: 0xff00000000000000000000000000000000000002 Topics: - 0x7e40c982e82bccb5e8bbd29f38bcfa3996f341ef9f51e2a9cffe086ec87a11c7 -- 0xd73f08b85d698e4307583ab28caa091500cfe976c9aa46c957e963246b4c217c -Data: 0x0000000000000000000000006ce4d79d4e77402e1ef3417fdda433aa744c6e1c0000000000000000000000006ce4d79d4e77402e1ef3417fdda433aa744c6e1c0000c55cf02dbeecc978d9c84625dcae72bb77ea4fbd0000000000000000000001570e3b77b3e1db0ef4da1a0be85767bd91e158d1000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000005e0be103000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001 +- 0x83fa75cb8976a0a19a558662f9a23b43ee119469ca5d1b1c25ab81b822280b27 +Data: 0x0000000000000000000000006ce4d79d4e77402e1ef3417fdda433aa744c6e1c0000000000000000000000006ce4d79d4e77402e1ef3417fdda433aa744c6e1c0000c55cf02dbeecc978d9c84625dcae72bb77ea4fbd0000000000000000000001a1bb750903c3e419b322ee388e74e3f97e00f09e000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000005e0be103000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001 diff --git a/etherlink/tezt/tests/expected/evm_sequencer.ml/Alpha- Regression test for the claimed FA deposit event.out b/etherlink/tezt/tests/expected/evm_sequencer.ml/Alpha- Regression test for the claimed FA deposit event.out index b41a385848c4457ff975f794878135a3f877aed7..e5dd1b372d5c8418603da6d15a81e765972ae029 100644 --- a/etherlink/tezt/tests/expected/evm_sequencer.ml/Alpha- Regression test for the claimed FA deposit event.out +++ b/etherlink/tezt/tests/expected/evm_sequencer.ml/Alpha- Regression test for the claimed FA deposit event.out @@ -3,7 +3,7 @@ Address: 0xff00000000000000000000000000000000000002 Topics: - 0xb02d79c5657e344e23d91529b954c3087c60a974d598939583904a4f0b959614 -- 0x20439b11ccadf7fd68ed2cb1bacc80a1d3df10f2374a62cefe6d4f45b9ee101a +- 0x13d1ace30beaa763d08656e720bee6c9fbda87c1e78a5d8e400e904aa1a2529b - 0x000000000000000000000000d77420f73b4612a7a99dba8c2afd30a1886b0344 Data: 0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d77420f73b4612a7a99dba8c2afd30a1886b0344000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000003 # Claimed deposit @@ -11,5 +11,5 @@ Data: 0x000000000000000000000000000000000000000000000000000000000000000000000000 Address: 0xff00000000000000000000000000000000000002 Topics: - 0x7ee7a1de9c18ce695c95b8b19fbdf26cce3544e3ca9e08c9f487776783d7599f -- 0x20439b11ccadf7fd68ed2cb1bacc80a1d3df10f2374a62cefe6d4f45b9ee101a +- 0x13d1ace30beaa763d08656e720bee6c9fbda87c1e78a5d8e400e904aa1a2529b Data: 0x000000000000000000000000d77420f73b4612a7a99dba8c2afd30a1886b0344000000000000000000000000d77420f73b4612a7a99dba8c2afd30a1886b0344000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000003 diff --git a/src/lib_dal_node_services/types.ml b/src/lib_dal_node_services/types.ml index 32b452bdb88737d4bec8174b036c1487bce815a5..6cf9c377d4b36dc4e0faa0e8c54f8d26b8a9b150 100644 --- a/src/lib_dal_node_services/types.ml +++ b/src/lib_dal_node_services/types.ml @@ -368,6 +368,7 @@ type with_proof = {with_proof : bool} type proto_parameters = { feature_enable : bool; incentives_enable : bool; + dynamic_lag_enable : bool; number_of_slots : int; attestation_lag : int; attestation_threshold : int; @@ -525,6 +526,7 @@ let proto_parameters_encoding : proto_parameters Data_encoding.t = (fun { feature_enable; incentives_enable; + dynamic_lag_enable; number_of_slots; attestation_lag; attestation_threshold; @@ -539,6 +541,7 @@ let proto_parameters_encoding : proto_parameters Data_encoding.t = -> ( ( feature_enable, incentives_enable, + dynamic_lag_enable, number_of_slots, attestation_lag, attestation_threshold, @@ -551,6 +554,7 @@ let proto_parameters_encoding : proto_parameters Data_encoding.t = minimal_block_delay ) )) (fun ( ( feature_enable, incentives_enable, + dynamic_lag_enable, number_of_slots, attestation_lag, attestation_threshold, @@ -565,6 +569,7 @@ let proto_parameters_encoding : proto_parameters Data_encoding.t = { feature_enable; incentives_enable; + dynamic_lag_enable; number_of_slots; attestation_lag; attestation_threshold; @@ -577,9 +582,10 @@ let proto_parameters_encoding : proto_parameters Data_encoding.t = minimal_block_delay; }) (merge_objs - (obj6 + (obj7 (req "feature_enable" bool) (req "incentives_enable" bool) + (req "dynamic_lag_enable" bool) (req "number_of_slots" int31) (req "attestation_lag" int31) (req "attestation_threshold" int31) diff --git a/src/lib_dal_node_services/types.mli b/src/lib_dal_node_services/types.mli index 21e13ca68c4c2d43c9a32bb40c19363807634ac1..dc5839f51fab13174ae6cf2663b1cb65ee7fd7da 100644 --- a/src/lib_dal_node_services/types.mli +++ b/src/lib_dal_node_services/types.mli @@ -271,6 +271,7 @@ type with_proof = {with_proof : bool} type proto_parameters = { feature_enable : bool; incentives_enable : bool; + dynamic_lag_enable : bool; number_of_slots : int; attestation_lag : int; attestation_threshold : int; diff --git a/src/proto_021_PsQuebec/lib_dal/dal_plugin_registration.ml b/src/proto_021_PsQuebec/lib_dal/dal_plugin_registration.ml index 4dc61c02cfa7eccc84df25e06d00075c58963a11..184eaf58f19c1d4062d8538e819115088a5f372e 100644 --- a/src/proto_021_PsQuebec/lib_dal/dal_plugin_registration.ml +++ b/src/proto_021_PsQuebec/lib_dal/dal_plugin_registration.ml @@ -62,6 +62,7 @@ module Plugin = struct { Tezos_dal_node_services.Types.feature_enable; incentives_enable; + dynamic_lag_enable = false; number_of_slots; attestation_lag; attestation_threshold; diff --git a/src/proto_022_PsRiotum/lib_dal/dal_plugin_registration.ml b/src/proto_022_PsRiotum/lib_dal/dal_plugin_registration.ml index 1bf36f85f5758aba59a7ae713c43f18ca0c0ba9d..5ea2b9d48ea70d373de70ec6b06b7e146326bc85 100644 --- a/src/proto_022_PsRiotum/lib_dal/dal_plugin_registration.ml +++ b/src/proto_022_PsRiotum/lib_dal/dal_plugin_registration.ml @@ -65,6 +65,7 @@ module Plugin = struct { Tezos_dal_node_services.Types.feature_enable; incentives_enable; + dynamic_lag_enable = false; number_of_slots; attestation_lag; attestation_threshold; diff --git a/src/proto_023_PtSeouLo/lib_dal/dal_plugin_registration.ml b/src/proto_023_PtSeouLo/lib_dal/dal_plugin_registration.ml index d15aa56d5aea325d8f6c46a551acc487c00e41f4..48353cc7e1e43a9803676e550257bc57401bceca 100644 --- a/src/proto_023_PtSeouLo/lib_dal/dal_plugin_registration.ml +++ b/src/proto_023_PtSeouLo/lib_dal/dal_plugin_registration.ml @@ -66,6 +66,7 @@ module Plugin = struct { Tezos_dal_node_services.Types.feature_enable; incentives_enable; + dynamic_lag_enable = false; number_of_slots; attestation_lag; attestation_threshold; diff --git a/src/proto_024_PtTALLiN/lib_dal/dal_plugin_registration.ml b/src/proto_024_PtTALLiN/lib_dal/dal_plugin_registration.ml index 5e90316f1b941ba2776355b8b5e5fc9f6711abff..c4f17a9503742dc5437220c207799e557b87ede3 100644 --- a/src/proto_024_PtTALLiN/lib_dal/dal_plugin_registration.ml +++ b/src/proto_024_PtTALLiN/lib_dal/dal_plugin_registration.ml @@ -83,6 +83,7 @@ module Plugin = struct { Tezos_dal_node_services.Types.feature_enable; incentives_enable; + dynamic_lag_enable = false; number_of_slots; attestation_lag; attestation_threshold; diff --git a/src/proto_alpha/lib_dal/dal_plugin_registration.ml b/src/proto_alpha/lib_dal/dal_plugin_registration.ml index 0b7b44cba22c82848c3b6ee46acd53de1960af69..e8744f502391d80b9f2c315fc6e62af6dc0f470d 100644 --- a/src/proto_alpha/lib_dal/dal_plugin_registration.ml +++ b/src/proto_alpha/lib_dal/dal_plugin_registration.ml @@ -105,6 +105,7 @@ module Plugin = struct let { Constants.Parametric.feature_enable; incentives_enable; + dynamic_lag_enable; number_of_slots; attestation_lag; attestation_threshold; @@ -119,6 +120,7 @@ module Plugin = struct { Tezos_dal_node_services.Types.feature_enable; incentives_enable; + dynamic_lag_enable; number_of_slots; attestation_lag; attestation_threshold; diff --git a/src/proto_alpha/lib_parameters/default_parameters.ml b/src/proto_alpha/lib_parameters/default_parameters.ml index d0d7c6a55de78e41180912c60417467f7464f1a1..8b96483ff79ed8b8cbf5d0be78f3eae3482aa29a 100644 --- a/src/proto_alpha/lib_parameters/default_parameters.ml +++ b/src/proto_alpha/lib_parameters/default_parameters.ml @@ -157,6 +157,7 @@ let default_dal = { feature_enable = true; incentives_enable = true; + dynamic_lag_enable = false; number_of_slots = 32; attestation_lag = 5; attestation_threshold = 66; diff --git a/src/proto_alpha/lib_protocol/alpha_context.mli b/src/proto_alpha/lib_protocol/alpha_context.mli index 418391a21e13b46d232c2a7e9bd5f0ee060a7cbb..1996cc8019b08c652411e0407857971c929068ab 100644 --- a/src/proto_alpha/lib_protocol/alpha_context.mli +++ b/src/proto_alpha/lib_protocol/alpha_context.mli @@ -860,6 +860,7 @@ module Constants : sig type dal = { feature_enable : bool; incentives_enable : bool; + dynamic_lag_enable : bool; number_of_slots : int; attestation_lag : int; attestation_threshold : int; @@ -2906,6 +2907,10 @@ module Dal : sig val only_if_incentives_enabled : t -> default:(t -> 'a) -> (t -> 'a) -> 'a + val assert_dynamic_lag_enabled : t -> unit tzresult + + val only_if_dynamic_lag_enabled : t -> default:(t -> 'a) -> (t -> 'a) -> 'a + (** This module re-exports definitions from {!Dal_slot_index_repr}. *) module Slot_index : sig type t diff --git a/src/proto_alpha/lib_protocol/constants_parametric_repr.ml b/src/proto_alpha/lib_protocol/constants_parametric_repr.ml index 2adc09727e2ffd7ea84313a6ce5980d2b8d0c5f5..20903d1dca222c9961e28e595dc617dea093c93f 100644 --- a/src/proto_alpha/lib_protocol/constants_parametric_repr.ml +++ b/src/proto_alpha/lib_protocol/constants_parametric_repr.ml @@ -48,6 +48,7 @@ let between_zero_and_excluding_one_q_encoding = type dal = { feature_enable : bool; incentives_enable : bool; + dynamic_lag_enable : bool; number_of_slots : int; attestation_lag : int; attestation_threshold : int; @@ -82,6 +83,7 @@ let dal_encoding = (fun { feature_enable; incentives_enable; + dynamic_lag_enable; number_of_slots; attestation_lag; attestation_threshold; @@ -93,6 +95,7 @@ let dal_encoding = -> ( ( feature_enable, incentives_enable, + dynamic_lag_enable, number_of_slots, attestation_lag, attestation_threshold, @@ -102,6 +105,7 @@ let dal_encoding = cryptobox_parameters )) (fun ( ( feature_enable, incentives_enable, + dynamic_lag_enable, number_of_slots, attestation_lag, attestation_threshold, @@ -113,6 +117,7 @@ let dal_encoding = { feature_enable; incentives_enable; + dynamic_lag_enable; number_of_slots; attestation_lag; attestation_threshold; @@ -122,9 +127,10 @@ let dal_encoding = traps_fraction; }) (merge_objs - (obj8 + (obj9 (req "feature_enable" bool) (req "incentives_enable" bool) + (req "dynamic_lag_enable" bool) (req "number_of_slots" uint16) (req "attestation_lag" uint8) (req "attestation_threshold" uint8) diff --git a/src/proto_alpha/lib_protocol/constants_parametric_repr.mli b/src/proto_alpha/lib_protocol/constants_parametric_repr.mli index cb769ff99174bbc1db1286b12b561885e1b03282..3d5fd7b8a132d7727ec8b4f5b23c297f6d06000f 100644 --- a/src/proto_alpha/lib_protocol/constants_parametric_repr.mli +++ b/src/proto_alpha/lib_protocol/constants_parametric_repr.mli @@ -73,6 +73,7 @@ type dal = { feature_enable : bool; incentives_enable : bool; + dynamic_lag_enable : bool; number_of_slots : int; attestation_lag : int; attestation_threshold : int; diff --git a/src/proto_alpha/lib_protocol/dal_errors_repr.ml b/src/proto_alpha/lib_protocol/dal_errors_repr.ml index 2645f9a25d297f10405d476f907576f6fc6f8a02..8f44fd0e7d15e349c472651216ca6758d6d78d93 100644 --- a/src/proto_alpha/lib_protocol/dal_errors_repr.ml +++ b/src/proto_alpha/lib_protocol/dal_errors_repr.ml @@ -26,6 +26,7 @@ type error += | Dal_feature_disabled | Dal_incentives_disabled + | Dal_dynamic_lag_disabled | Dal_slot_index_above_hard_limit of {given : int; limit : int} | Dal_publish_commitment_invalid_index of { given : Dal_slot_index_repr.t; @@ -77,6 +78,17 @@ let () = (function Dal_incentives_disabled -> Some () | _ -> None) (fun () -> Dal_incentives_disabled) ; + let description = "The DAL dynamic lag feature is not yet enabled." in + register_error_kind + `Permanent + ~id:"dal_dynamic_lag_disabled" + ~title:"DAL dynamic lag feature is disabled" + ~description + ~pp:(fun ppf () -> Format.fprintf ppf "%s" description) + Data_encoding.unit + (function Dal_dynamic_lag_disabled -> Some () | _ -> None) + (fun () -> Dal_dynamic_lag_disabled) ; + let description = "Slot index above hard limit" in register_error_kind `Permanent diff --git a/src/proto_alpha/lib_protocol/dal_storage.ml b/src/proto_alpha/lib_protocol/dal_storage.ml index 184c51e70262b77d43852ecbedb325a413b523b7..465db955f198b6bcf69cad82ae69d3561e4bab28 100644 --- a/src/proto_alpha/lib_protocol/dal_storage.ml +++ b/src/proto_alpha/lib_protocol/dal_storage.ml @@ -35,6 +35,7 @@ let save_parameters ctxt { feature_enable; incentives_enable; + dynamic_lag_enable = false; number_of_slots; attestation_lag; attestation_threshold; diff --git a/src/proto_alpha/lib_protocol/raw_context.ml b/src/proto_alpha/lib_protocol/raw_context.ml index cab958b3fb775e0ced6677fbb6896f18dc22dafc..0aecf4f5c47d97c53aad316f865a04ff87f827bf 100644 --- a/src/proto_alpha/lib_protocol/raw_context.ml +++ b/src/proto_alpha/lib_protocol/raw_context.ml @@ -1052,6 +1052,7 @@ let prepare_first_block ~level ~timestamp chain_id ctxt = let ({ feature_enable; incentives_enable; + dynamic_lag_enable; number_of_slots; attestation_lag; attestation_threshold; @@ -1066,6 +1067,7 @@ let prepare_first_block ~level ~timestamp chain_id ctxt = { Constants_parametric_repr.feature_enable; incentives_enable; + dynamic_lag_enable; number_of_slots; attestation_lag; attestation_threshold; @@ -1365,6 +1367,7 @@ let prepare_first_block ~level ~timestamp chain_id ctxt = { Constants_parametric_repr.feature_enable; incentives_enable; + dynamic_lag_enable = false; number_of_slots; attestation_lag = 5; attestation_threshold; @@ -2287,6 +2290,16 @@ module Dal = struct let only_if_incentives_enabled ctxt ~default f = let constants = constants ctxt in if constants.dal.incentives_enable then f ctxt else default ctxt + + let assert_dynamic_lag_enabled ctxt = + let constants = constants ctxt in + error_unless + Compare.Bool.(constants.dal.dynamic_lag_enable = true) + Dal_errors_repr.Dal_dynamic_lag_disabled + + let only_if_dynamic_lag_enabled ctxt ~default f = + let constants = constants ctxt in + if constants.dal.dynamic_lag_enable then f ctxt else default ctxt end module Address_registry = struct diff --git a/src/proto_alpha/lib_protocol/raw_context.mli b/src/proto_alpha/lib_protocol/raw_context.mli index b2dec486f0db103b7bd386ac4d961ef88329b03d..c70425099d7f73039b9d1bc60d95c38aecf10a41 100644 --- a/src/proto_alpha/lib_protocol/raw_context.mli +++ b/src/proto_alpha/lib_protocol/raw_context.mli @@ -545,6 +545,14 @@ module Dal : sig (* [only_if_dal_incentives_enabled ctxt ~default f] executes [f ctxt] if the DAL incentives flag is enabled and otherwise [default ctxt]. *) val only_if_incentives_enabled : t -> default:(t -> 'a) -> (t -> 'a) -> 'a + + (* Check whether the DAL dynamic lag flag is set and return the error + {!Dal_dynamic_lag_disabled} if not. *) + val assert_dynamic_lag_enabled : t -> unit tzresult + + (* [only_if_dal_dynamic_lag_enabled ctxt ~default f] executes [f ctxt] if the + DAL dynamic flag is enabled and otherwise [default ctxt]. *) + val only_if_dynamic_lag_enabled : t -> default:(t -> 'a) -> (t -> 'a) -> 'a end module Address_registry : sig diff --git a/src/proto_alpha/lib_protocol/test/unit/test_dal_past_parameters_storage.ml b/src/proto_alpha/lib_protocol/test/unit/test_dal_past_parameters_storage.ml index 7f5faaf7af231af60cb73063405882c60eb949ef..7604f068dfd7e2d3b331d327fea50932cd295752 100644 --- a/src/proto_alpha/lib_protocol/test/unit/test_dal_past_parameters_storage.ml +++ b/src/proto_alpha/lib_protocol/test/unit/test_dal_past_parameters_storage.ml @@ -69,6 +69,7 @@ let parameters_for_a_level () = { feature_enable; incentives_enable; + dynamic_lag_enable = false; number_of_slots; attestation_lag; attestation_threshold; diff --git a/tezt/tests/expected/RPC_test.ml/Alpha- (mode client) RPC regression tests- misc_protocol.out b/tezt/tests/expected/RPC_test.ml/Alpha- (mode client) RPC regression tests- misc_protocol.out index e9181a3ed0413a07676e6d7590bc558fc6283848..2420a7c6ba94b3a3177e9873ea8f5d481d06115c 100644 --- a/tezt/tests/expected/RPC_test.ml/Alpha- (mode client) RPC regression tests- misc_protocol.out +++ b/tezt/tests/expected/RPC_test.ml/Alpha- (mode client) RPC regression tests- misc_protocol.out @@ -40,8 +40,8 @@ "cache_sampler_state_cycles": 5, "dal_parametric": { "feature_enable": true, "incentives_enable": true, - "number_of_slots": 16, "attestation_lag": 5, - "attestation_threshold": 66, + "dynamic_lag_enable": false, "number_of_slots": 16, + "attestation_lag": 5, "attestation_threshold": 66, "minimal_participation_ratio": { "numerator": "16", "denominator": "25" }, "rewards_ratio": { "numerator": "1", "denominator": "10" }, diff --git a/tezt/tests/expected/RPC_test.ml/Alpha- (mode client) RPC regression tests- misc_protocol_abaab.out b/tezt/tests/expected/RPC_test.ml/Alpha- (mode client) RPC regression tests- misc_protocol_abaab.out index 34e7a888cc5bb4fc9fae777d9eb9d44bc95c63fc..787beb645e2fe003df593b4d67afd5d24642a21c 100644 --- a/tezt/tests/expected/RPC_test.ml/Alpha- (mode client) RPC regression tests- misc_protocol_abaab.out +++ b/tezt/tests/expected/RPC_test.ml/Alpha- (mode client) RPC regression tests- misc_protocol_abaab.out @@ -40,8 +40,8 @@ "cache_sampler_state_cycles": 5, "dal_parametric": { "feature_enable": true, "incentives_enable": true, - "number_of_slots": 16, "attestation_lag": 5, - "attestation_threshold": 66, + "dynamic_lag_enable": false, "number_of_slots": 16, + "attestation_lag": 5, "attestation_threshold": 66, "minimal_participation_ratio": { "numerator": "16", "denominator": "25" }, "rewards_ratio": { "numerator": "1", "denominator": "10" }, diff --git a/tezt/tests/expected/RPC_test.ml/Alpha- (mode light) RPC regression tests- misc_protocol.out b/tezt/tests/expected/RPC_test.ml/Alpha- (mode light) RPC regression tests- misc_protocol.out index 8fc513ca97f0579c224aa50f2d67020cb2fc6250..0b503d16958be9e81b0d68b4026cf7fb54d9ee08 100644 --- a/tezt/tests/expected/RPC_test.ml/Alpha- (mode light) RPC regression tests- misc_protocol.out +++ b/tezt/tests/expected/RPC_test.ml/Alpha- (mode light) RPC regression tests- misc_protocol.out @@ -40,8 +40,8 @@ "cache_sampler_state_cycles": 5, "dal_parametric": { "feature_enable": true, "incentives_enable": true, - "number_of_slots": 16, "attestation_lag": 5, - "attestation_threshold": 66, + "dynamic_lag_enable": false, "number_of_slots": 16, + "attestation_lag": 5, "attestation_threshold": 66, "minimal_participation_ratio": { "numerator": "16", "denominator": "25" }, "rewards_ratio": { "numerator": "1", "denominator": "10" }, diff --git a/tezt/tests/expected/RPC_test.ml/Alpha- (mode light) RPC regression tests- misc_protocol_abaab.out b/tezt/tests/expected/RPC_test.ml/Alpha- (mode light) RPC regression tests- misc_protocol_abaab.out index 39d9c90c3d3a9ea7b268bc5b5e8b9b8ccd172df8..1af73250ae9dcf1428a290e9dc809263bacf2f6d 100644 --- a/tezt/tests/expected/RPC_test.ml/Alpha- (mode light) RPC regression tests- misc_protocol_abaab.out +++ b/tezt/tests/expected/RPC_test.ml/Alpha- (mode light) RPC regression tests- misc_protocol_abaab.out @@ -40,8 +40,8 @@ "cache_sampler_state_cycles": 5, "dal_parametric": { "feature_enable": true, "incentives_enable": true, - "number_of_slots": 16, "attestation_lag": 5, - "attestation_threshold": 66, + "dynamic_lag_enable": false, "number_of_slots": 16, + "attestation_lag": 5, "attestation_threshold": 66, "minimal_participation_ratio": { "numerator": "16", "denominator": "25" }, "rewards_ratio": { "numerator": "1", "denominator": "10" }, diff --git a/tezt/tests/expected/RPC_test.ml/Alpha- (mode proxy) RPC regression tests- misc_protocol.out b/tezt/tests/expected/RPC_test.ml/Alpha- (mode proxy) RPC regression tests- misc_protocol.out index 718cfdbf436e441abe32ea3dfe6ce09829dc6fc8..81775501881d9ee5e05cdf442980ef724d686d76 100644 --- a/tezt/tests/expected/RPC_test.ml/Alpha- (mode proxy) RPC regression tests- misc_protocol.out +++ b/tezt/tests/expected/RPC_test.ml/Alpha- (mode proxy) RPC regression tests- misc_protocol.out @@ -40,8 +40,8 @@ "cache_sampler_state_cycles": 5, "dal_parametric": { "feature_enable": true, "incentives_enable": true, - "number_of_slots": 16, "attestation_lag": 5, - "attestation_threshold": 66, + "dynamic_lag_enable": false, "number_of_slots": 16, + "attestation_lag": 5, "attestation_threshold": 66, "minimal_participation_ratio": { "numerator": "16", "denominator": "25" }, "rewards_ratio": { "numerator": "1", "denominator": "10" }, diff --git a/tezt/tests/expected/RPC_test.ml/Alpha- (mode proxy) RPC regression tests- misc_protocol_abaab.out b/tezt/tests/expected/RPC_test.ml/Alpha- (mode proxy) RPC regression tests- misc_protocol_abaab.out index cf92eda46073a99e10412ac6ca89069c8dba4558..0d06f14ca1bccd78c3d0ebe96c93062bd1c201ea 100644 --- a/tezt/tests/expected/RPC_test.ml/Alpha- (mode proxy) RPC regression tests- misc_protocol_abaab.out +++ b/tezt/tests/expected/RPC_test.ml/Alpha- (mode proxy) RPC regression tests- misc_protocol_abaab.out @@ -40,8 +40,8 @@ "cache_sampler_state_cycles": 5, "dal_parametric": { "feature_enable": true, "incentives_enable": true, - "number_of_slots": 16, "attestation_lag": 5, - "attestation_threshold": 66, + "dynamic_lag_enable": false, "number_of_slots": 16, + "attestation_lag": 5, "attestation_threshold": 66, "minimal_participation_ratio": { "numerator": "16", "denominator": "25" }, "rewards_ratio": { "numerator": "1", "denominator": "10" }, diff --git a/tezt/tests/expected/weeklynet.ml/Alpha- weeklynet regression test.out b/tezt/tests/expected/weeklynet.ml/Alpha- weeklynet regression test.out index c91bd5225fa41c5c8605aef436098c49dd7d7dc0..c1046c07bbbe8d183a1b676925c2262c18b68d1b 100644 --- a/tezt/tests/expected/weeklynet.ml/Alpha- weeklynet regression test.out +++ b/tezt/tests/expected/weeklynet.ml/Alpha- weeklynet regression test.out @@ -30,8 +30,8 @@ "cache_sampler_state_cycles": 5, "dal_parametric": { "feature_enable": true, "incentives_enable": false, - "number_of_slots": 32, "attestation_lag": 5, - "attestation_threshold": 66, + "dynamic_lag_enable": false, "number_of_slots": 32, + "attestation_lag": 5, "attestation_threshold": 66, "minimal_participation_ratio": { "numerator": "16", "denominator": "25" }, "rewards_ratio": { "numerator": "0", "denominator": "1" }, diff --git a/tezt/tests/weeklynet_configs/alpha.json b/tezt/tests/weeklynet_configs/alpha.json index 172b0bc561003a7027b448a07a26123887e1204e..53e0668e760a0530cb5f9f6832d8229acea19be6 100644 --- a/tezt/tests/weeklynet_configs/alpha.json +++ b/tezt/tests/weeklynet_configs/alpha.json @@ -74,6 +74,7 @@ "dal_parametric": { "feature_enable": true, "incentives_enable": false, + "dynamic_lag_enable": false, "number_of_slots": 32, "attestation_lag": 8, "attestation_threshold": 66,