Skip to content

Commit b7ed08e

Browse files
chore(config): clarify catchup_lag_threshold=1 rejection message
Reword the ValidateBasic error for catchup_lag_threshold == 1 from "to absorb round skew" to "(margin beyond the one-height round skew)". Rejecting 1 isn't required to absorb a one-height skew; the point is to keep the smallest enabled threshold above the routine one-height proposer/commit difference between synced peers. Message text only; no logic change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 67da2af commit b7ed08e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,7 @@ func (cfg *ConsensusConfig) ValidateBasic() error {
11811181
return errors.New("catchup_lag_threshold can't be negative")
11821182
}
11831183
if cfg.CatchupLagThreshold == 1 {
1184-
return errors.New("catchup_lag_threshold must be 0 (disabled) or >=2 to absorb round skew")
1184+
return errors.New("catchup_lag_threshold must be 0 (disabled) or >=2 (margin beyond the one-height round skew)")
11851185
}
11861186
if cfg.CatchupDebounceDuration < 0 {
11871187
return errors.New("catchup_debounce_duration can't be negative")

0 commit comments

Comments
 (0)