fix(chain): 恢复 timeout_commit sed 命令, 确保 1s 出块
genexd init 生成的 config.toml 默认 timeout_commit=5s, initCometConfig() 的代码设置仅在首次生成模板时生效, 不会覆盖已有 config.toml。必须通过 sed 显式修改。 验证结果: 40 blocks/30s = 0.75s/block ✓ Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
20d9e10d26
commit
5f474c87b9
|
|
@ -145,10 +145,13 @@ sed -i 's/timeout_prevote_delta = "500ms"/timeout_prevote_delta = "200ms"/' "$CO
|
|||
sed -i 's/timeout_precommit = "1s"/timeout_precommit = "500ms"/' "$CONFIG_TOML"
|
||||
sed -i 's/timeout_precommit_delta = "500ms"/timeout_precommit_delta = "200ms"/' "$CONFIG_TOML"
|
||||
|
||||
# timeout_commit: 1s → 稳定 ~1s/块 (代码级 initCometConfig 已设为 1s)
|
||||
# 单验证者: ~1.0s, 多验证者(20-50): ~1.5-2s
|
||||
# timeout_commit: 5s → 1s — 稳定 ~1s/块
|
||||
# genexd init 生成的 config.toml 默认 5s,必须通过 sed 修改
|
||||
# (initCometConfig 的代码设置仅用于首次生成模板,不会覆盖已有文件)
|
||||
# 单验证者: ~0.75-0.88s, 多验证者(20-50): ~1.5-2s
|
||||
# 对标: dYdX 1-2s, Injective 1.2s, Cosmos Hub 6-7s
|
||||
#
|
||||
sed -i 's/timeout_commit = "5s"/timeout_commit = "1s"/' "$CONFIG_TOML"
|
||||
|
||||
# create_empty_blocks 保持默认 true:
|
||||
# cosmos/evm 链的 EVM EndBlock 每次都改变 app hash,
|
||||
# needProofBlock() 始终返回 true, 设 false 无实际效果 (ethermint#308)
|
||||
|
|
|
|||
Loading…
Reference in New Issue