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
{{ message }}
Repository navigation
feat: add a cometbft config check CLI command #2829
Add a new command to CometBFT to validate and check the configuration file, and output warnings and messages in case there are misconfigurations
Problem Definition
CometBFT has several parameters that can be configured in the configuration file by operators. Some of these parameters are related to one another in different ways, for example, parameters related to the mempool such as max_txs_bytes and max_tx_bytes.
Currently there is not way to enforce or check if some of these values make sense (too large or too small in relation to another). Or if the value set would cause any issues.
Proposal
We should implement a cometbft config check command that parses a configuration file and output warnings and messages for misconfigured parameters. It could also output messages such as when a parameter is not configured, then the command shows the default value that will be used that is hard-coded in CometBFT.
This command might be very helpful for operators and it could help streamline configuration across the network. Not that they would agree but it could reduces big outliers in configuration that could cause issues. See this discussion.
Now that we also have a config documentation, we could point the operators to see more information online for a particular parameter.
Activity
melekes commentedon Sep 3, 2024
Since there's
cometbft configsub-cmd now, the command should becometbft config check.[-]feat: add a `config-check` CLI command[/-][+]feat: add a `cometbft config check` CLI command[/+]