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
Having a custom node location (using the --home flag) is causing many issues at node instantiation.
We have been using many hacks to avoid using the default one:
The issue is the --home flag is parsed too late (at cobra run (RunE and & co), while most of the instantiation is done before the commands and the flag parsing.
We need to parse the --home flag earlier or rely solely on environment variable. Best would be at init() or somewhere in main() before any other logic, and pass it down.
The text was updated successfully, but these errors were encountered:
Having a custom node location (using the
--home
flag) is causing many issues at node instantiation.We have been using many hacks to avoid using the default one:
Default one set here:
cosmos-sdk/simapp/app.go
Lines 186 to 191 in 340f85f
Hack 1:
cosmos-sdk/simapp/simd/cmd/root_di.go
Line 43 in 340f85f
cosmos-sdk/simapp/simd/cmd/root.go
Line 33 in 340f85f
Hack 2:
cosmos-sdk/simapp/simd/cmd/root.go
Lines 117 to 120 in 340f85f
The issue is the
--home
flag is parsed too late (at cobra run (RunE and & co), while most of the instantiation is done before the commands and the flag parsing.We need to parse the
--home
flag earlier or rely solely on environment variable. Best would be atinit()
or somewhere inmain()
before any other logic, and pass it down.The text was updated successfully, but these errors were encountered: