From 04d6f5ed81f94f36679f686f24462181f0cebc1a Mon Sep 17 00:00:00 2001 From: Albin Coquereau Date: Mon, 6 May 2024 11:49:35 +0200 Subject: [PATCH 1/2] Shell: reduce synchronization.latency to 50 the previous value, namely 75, was set assumming block times was 15 seconds --- src/lib_shell_services/shell_limits.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib_shell_services/shell_limits.ml b/src/lib_shell_services/shell_limits.ml index 56f4601c873a..77bec879c68e 100644 --- a/src/lib_shell_services/shell_limits.ml +++ b/src/lib_shell_services/shell_limits.ml @@ -205,7 +205,7 @@ let synchronisation_heuristic_encoding default_latency default_threshold = type chain_validator_limits = {synchronisation : synchronisation_limits} let default_chain_validator_limits = - {synchronisation = {latency = 75; threshold = 4}} + {synchronisation = {latency = 50; threshold = 4}} let chain_validator_limits_encoding = let open Data_encoding in -- GitLab From e99014400e9fad02852d2ad52049c6babf89119c Mon Sep 17 00:00:00 2001 From: Albin Coquereau Date: Mon, 6 May 2024 11:51:25 +0200 Subject: [PATCH 2/2] Docs/Shell: update default value of synchronization.latency --- docs/shell/sync.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/shell/sync.rst b/docs/shell/sync.rst index dd740112f31a..09e41b7e5c6f 100644 --- a/docs/shell/sync.rst +++ b/docs/shell/sync.rst @@ -86,7 +86,7 @@ Other values are acceptable for ``threshold``, but a small probably best: performances and accuracy may degrade for values much higher than ``10``. -The default value for ``latency`` is ``75`` seconds. Whatever you +The default value for ``latency`` is ``50`` seconds. Whatever you change it to, it should be at least long enough to include a few blocks' worth of the protocol's baking rate plus some network latency, but not so long that the node considers itself bootstrapped even @@ -94,7 +94,7 @@ though it is many blocks away from the chain's head. A good value for ``latency`` is ``2`` to ``5`` times the time between blocks, plus a small delta for network delays. At the time of -writing, the time between two consecutive blocks is ``15`` seconds +writing, the time between two consecutive blocks is ``10`` seconds when the chain is healthy (see :doc:`the consensus algorithm <../active/consensus>`). -- GitLab