tendermint-node icon indicating copy to clipboard operation
tendermint-node copied to clipboard

How to programatically control the config options?

Open KrishnaPG opened this issue 5 years ago • 0 comments

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)?

KrishnaPG avatar May 08 '19 09:05 KrishnaPG