tendermint-node
tendermint-node copied to clipboard
How to programatically control the config options?
When the tendermint.initSync()
is called it looks like a config file is auto-magically generated, it has some defaults, which need to be overwritten in the application, for example, timeout_commit
, create_empty_blocks
etc. options (usually found in the config.toml
) need to adjusted based on the dev
and production
environments.
How to achieve this?
Would passing these options as part of the opts
parameter of tendermint.node()
method override the defaults specified in the generated config.toml
?
If not, is there anyway, we can override / configure them every time we start the node app (programatically)?