Fix unsafe-reset-all for working with default home#9103
Fix unsafe-reset-all for working with default home#9103cmwaters merged 2 commits intotendermint:mainfrom
Conversation
cmwaters
left a comment
There was a problem hiding this comment.
Thanks for the fix, could you rebase your PR against main instead of v0.34.x
f1751fc to
cd6b78d
Compare
Fixed :) |
| // ParseConfig retrieves the default environment configuration, | ||
| // sets up the Tendermint root and ensures that the root exists | ||
| func ParseConfig() (*cfg.Config, error) { | ||
| func ParseConfig(cmd *cobra.Command) (*cfg.Config, error) { |
There was a problem hiding this comment.
It may be better to pass the home path string instead of an entire command but we can clean this up in a later PR
There was a problem hiding this comment.
thx for your comment. I'll clean this up on next issue.
|
There seems to be a failure in one of the integration tests. I wonder if you need to let viper know the path to read the config from. Something like this: |
Sorry my bad, I should to test before push PR. |
Ref. #9102
close #9102
tendermint unsafe-reset-allcommand should clear client's home directorybut this command is not working with default home flags.
Ad described #9102,
unsafe-reset-allcommand try to clear#HOME/datadirectory by defaultwhere is not client's home.
To resolve this issue,
ParseConfigfunction explicitly get client's homeand set it into config.