Closed james-chf closed 3 months ago
I've updated this issue cc @Fraccaman , maybe we want to keep the current ANOMA_
prefix. I've marked this as lower priority now since there is a way to override config via the environment.
Unassigning myself for the time being as will not be working on this, although https://github.com/anoma/namada/pull/398 does update the crate, it will probably break a lot of places where we are using ANOMA_
environment variables
We should be able to override
.anoma/<chain-id>/config.toml
values by specifying envvars at runtime prefixed withANOMA__
. e.g.ANOMA__WASM_DIR
to set thewasm_dir
value, orANOMA__LEDGER__SHELL__DB_DIR
to set theledger.shell.db_dir
value.In Namada v0.7.1, due to an issue with the version of the underlying
config
crate we are using, we need to prefix withANOMA_
rather thanANOMA__
(https://github.com/mehcode/config-rs/issues/173). If we upgrade our config crate, the behaviour will change to prefixing withANOMA__
, so if/when we upgrade we should update usages or otherwise upgrade in such a way that we can keep usingANOMA_
as a prefix. We should also document how we override configuration somewhere.