diff --git a/docs/shell/sync.rst b/docs/shell/sync.rst index 2b348302cad00a582ab811a67d23bd68838a6ae4..dd740112f31a84c0c2b035f7fcb45e46ae07665c 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>`). diff --git a/src/lib_shell_services/shell_limits.ml b/src/lib_shell_services/shell_limits.ml index dc3af100fea3995bdeb30a983a866c676ab67cb5..83843b9bf82d56c23e727d5a8f560356bca42a74 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