这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Lazar955
Copy link
Member

closes #405

Copy link
Contributor

@RafilxTenfen RafilxTenfen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

Copy link
Member

@gitferry gitferry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm! Minor comments

Comment on lines +409 to +411
if len(appHashHex) == 0 {
return fmt.Errorf("app hash is required")
}
Copy link
Member

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?

Copy link
Member Author

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")
Copy link
Member

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?

@Lazar955 Lazar955 merged commit c5408ea into main Mar 30, 2025
18 checks passed
@Lazar955 Lazar955 deleted the lazar/rm-default-apphash-flag branch March 30, 2025 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: remove default value for --app-hash flag in fpd unsafe-add-finality-sig

4 participants