From 29e10ca8eead007223bbd4c27fc1930b44e4ca94 Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Cornilleau Date: Mon, 11 Aug 2025 15:53:27 +0200 Subject: [PATCH] Tezlink/Node: set shortest delay between block --- etherlink/bin_node/lib_dev/tezlink/tezlink_constants.ml | 8 ++++++++ .../tezlink.ml/Alpha- Test of the constants rpc.out | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/etherlink/bin_node/lib_dev/tezlink/tezlink_constants.ml b/etherlink/bin_node/lib_dev/tezlink/tezlink_constants.ml index 102bcc2e686d..f8ac2ebcf768 100644 --- a/etherlink/bin_node/lib_dev/tezlink/tezlink_constants.ml +++ b/etherlink/bin_node/lib_dev/tezlink/tezlink_constants.ml @@ -19,6 +19,14 @@ let parametric_repr : Imported_protocol.Constants_parametric_repr.t = | Ok param -> param | Error _ -> assert false +(* This is a small patch to trick tzkt into indexing asap. We can't do less + than 1sec though, as Period_repr is in seconds. *) +let parametric_repr = + { + parametric_repr with + minimal_block_delay = Imported_protocol.Period_repr.one_second; + } + let all_constants_repr : Imported_protocol.Constants_repr.t = Imported_protocol.Constants_repr.all_of_parametric parametric_repr diff --git a/etherlink/tezt/tests/expected/tezlink.ml/Alpha- Test of the constants rpc.out b/etherlink/tezt/tests/expected/tezlink.ml/Alpha- Test of the constants rpc.out index 3ca2aa6e77aa..e7fda554d4c7 100644 --- a/etherlink/tezt/tests/expected/tezlink.ml/Alpha- Test of the constants rpc.out +++ b/etherlink/tezt/tests/expected/tezlink.ml/Alpha- Test of the constants rpc.out @@ -28,7 +28,7 @@ "quorum_max": 7000, "min_proposal_quorum": 500, "liquidity_baking_subsidy": "5000000", "liquidity_baking_toggle_ema_threshold": 1000000000, - "max_operations_time_to_live": 450, "minimal_block_delay": "8", + "max_operations_time_to_live": 450, "minimal_block_delay": "1", "delay_increment_per_round": "4", "consensus_committee_size": 7000, "consensus_threshold_size": 4667, "minimal_participation_ratio": { "numerator": 2, "denominator": 3 }, -- GitLab