-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add a command to change DA with an existing rollapp #451
Conversation
return config.WriteConfigToTOML(rlpCfg) | ||
} | ||
|
||
func cleanDADir(cfg config.RollappConfig) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
won't fail when updating from mock? mock has da dir?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removeAll return nil when the dir does not exist, so it is ok.
} | ||
|
||
func cleanDADir(cfg config.RollappConfig) error { | ||
return os.RemoveAll(filepath.Join(cfg.Home, consts.ConfigDirName.DALightNode)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will remove the old keys
open a todo issue to add warning or require -force
flag when deleting keys
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
opened, #454
PR Standards
Opening a pull request should be able to meet the following requirements
For Author:
godoc
commentsFor Reviewer:
After reviewer approval: