You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Task 2. Makes sense in principle, although the relations pointed out in this comment are inequations, so they don't really tell you the value of some params in terms of others, but rather bounds (i.e., min or max values). I recently heard @cason say something along these lines.
Something I do see clearly here is that I don't see any practical reason not to merge timeout_prevote and timeout_precommit into one single value. As the events these timeouts relate to are vote reception (same number, similar size)
Task 3. Fully agree with timeout_prevote_delta and timeout_precommit_delta (both relating to votes). Not 100% sure about timeout_propose_delta, as it has to do with a proposal and its block, which can be way bigger in size than votes.
@josef-widder@milosevic how feasible it is to actually calculate values of timeout_prevote (1s) & timeout_precommit (1s) from the round delta (500ms) - tendermint/tendermint#2920 (comment)? As @sergio-mena pointed out they define "min" values. But this is exactly what we're looking for! "min" values, which if validators fail to agree in round 0, get increased in round 1.
Something I do see clearly here is that I don't see any practical reason not to merge timeout_prevote and timeout_precommit into one single value. As the events these timeouts relate to are vote reception (same number, similar size)
They don't have similar sizes when we have vote extensions......
Timeouts should be based on the size of the messages they refer to.
timeout_propose is strictly dependent on the typical block size, it should be computed based on the maximum block size in a network. timeout_propose_delta is the correction for this value, when underestimated. This should also depend on the block size.
timeout_prevote is more an optimization than anything. It defines how much time we still wait, when failing to observe a 2/3+ quorum for the same value, for additional votes that might change our action (we may see a 2/3+ quorum if we wait a little longer). There is some important discussion regarding the removal of this timestamp, or at least ignoring it when we realize we can't get a 2/3+ quorum at all from the already received messages (typical case: 2/3+ prevotes for nil).
timeout_precommit is really relevant for liveness. It is not an optimization. Once we reach GST, i.e., the system respects the current timeouts, we need all correct validators to see a 2/3+ quorum of precommits in the case one correct validator has seen it. Without this, the system might incur in the hidden lock issue, which prevents progress.
Before vote extensions, there was no reason to consider that prevotes and precommits would have distinct latencies, as both are fixed-size messages. This changes with vote extensions.
Reacted by Anton Kaliaev, Adi Seredinschi and Sergio Mena
Activity
sergio-mena commentedon Apr 23, 2024
These are my thoughts:
timeout_prevoteandtimeout_precommitinto one single value. As the events these timeouts relate to are vote reception (same number, similar size)timeout_prevote_deltaandtimeout_precommit_delta(both relating to votes). Not 100% sure abouttimeout_propose_delta, as it has to do with a proposal and its block, which can be way bigger in size than votes.melekes commentedon Apr 25, 2024
@josef-widder @milosevic how feasible it is to actually calculate values of
timeout_prevote(1s) &timeout_precommit(1s) from the round delta (500ms) - tendermint/tendermint#2920 (comment)? As @sergio-mena pointed out they define "min" values. But this is exactly what we're looking for! "min" values, which if validators fail to agree in round 0, get increased in round 1.melekes commentedon Apr 25, 2024
cc @ebuchman ^
cason commentedon May 8, 2024
See #2547
cason commentedon May 8, 2024
They don't have similar sizes when we have vote extensions......
cason commentedon May 8, 2024
So, jumping here later.
Timeouts should be based on the size of the messages they refer to.
timeout_proposeis strictly dependent on the typical block size, it should be computed based on the maximum block size in a network.timeout_propose_deltais the correction for this value, when underestimated. This should also depend on the block size.timeout_prevoteis more an optimization than anything. It defines how much time we still wait, when failing to observe a 2/3+ quorum for the same value, for additional votes that might change our action (we may see a 2/3+ quorum if we wait a little longer). There is some important discussion regarding the removal of this timestamp, or at least ignoring it when we realize we can't get a 2/3+ quorum at all from the already received messages (typical case: 2/3+ prevotes for nil).timeout_precommitis really relevant for liveness. It is not an optimization. Once we reach GST, i.e., the system respects the current timeouts, we need all correct validators to see a 2/3+ quorum of precommits in the case one correct validator has seen it. Without this, the system might incur in the hidden lock issue, which prevents progress.Before vote extensions, there was no reason to consider that prevotes and precommits would have distinct latencies, as both are fixed-size messages. This changes with vote extensions.
melekes commentedon May 17, 2024
skip_timeout_commit(backport #2892) #2926 in v1timeout_commiton mainfeat(config): deprecate skip_timeout_commit
feat(config): deprecate skip_timeout_commit (#3093)