From 55d6fa5de24ed6c8ecf796903966e29f9b42273c Mon Sep 17 00:00:00 2001 From: Eugen Zalinescu Date: Wed, 14 Jun 2023 15:00:27 +0200 Subject: [PATCH 1/2] Shell: reduce synchronization.latency to 75 the previous value, namely 150, was set assumming block times are 30 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 dc3af100fea3..83843b9bf82d 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 = 150; threshold = 4}} + {synchronisation = {latency = 75; threshold = 4}} let chain_validator_limits_encoding = let open Data_encoding in -- GitLab From 88c0fd06fb6ef18f335f64360a6757e09c33ad74 Mon Sep 17 00:00:00 2001 From: Eugen Zalinescu Date: Wed, 14 Jun 2023 15:03:08 +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 2b348302cad0..dd740112f31a 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 ``150`` seconds. Whatever you +The default value for ``latency`` is ``75`` 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 ``30`` seconds +writing, the time between two consecutive blocks is ``15`` seconds when the chain is healthy (see :doc:`the consensus algorithm <../active/consensus>`). -- GitLab