-
Notifications
You must be signed in to change notification settings - Fork 29
chore: rm default value for app hash flag #413
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
Conversation
RafilxTenfen
left a comment
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.
🎉
gitferry
left a comment
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.
Lgtm! Minor comments
| if len(appHashHex) == 0 { | ||
| return fmt.Errorf("app hash is required") | ||
| } |
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.
Maybe we can also check the app hash hex should be in correct format?
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.
Added the len check after we decode it into bytes 76293db. Not sure what else we can validate?
| } | ||
| cmd.Flags().String(fpdDaemonAddressFlag, defaultFpdDaemonAddress, "The RPC server address of fpd") | ||
| cmd.Flags().String(appHashFlag, defaultAppHashStr, "The last commit hash of the chain block") | ||
| cmd.Flags().String(appHashFlag, "", "The last commit hash of the chain block") |
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.
Can we make this flag required?
closes #405