Skip to content
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

chore: add a comment for --trusted-block-* flags #55

Merged
merged 3 commits into from
Dec 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmd/oracled/cmd/gen_oracle_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ func genOracleKeyCmd() *cobra.Command {
return nil
},
}

// The reason why this trust block info is required is explained in the oracle.proto
cmd.Flags().Int64(flags.FlagTrustedBlockHeight, 0, "Trusted block height")
cmd.Flags().String(flags.FlagTrustedBlockHash, "", "Trusted block hash")
_ = cmd.MarkFlagRequired(flags.FlagTrustedBlockHeight)
Expand Down
1 change: 1 addition & 0 deletions cmd/oracled/cmd/register_oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func registerOracleCmd() *cobra.Command {
},
}

// The reason why this trust block info is required is explained in the oracle.proto
cmd.Flags().Int64(flags.FlagTrustedBlockHeight, 0, "Trusted block height")
cmd.Flags().String(flags.FlagTrustedBlockHash, "", "Trusted block hash")
cmd.Flags().String(flags.FlagOracleEndpoint, "", "endpoint of oracle")
Expand Down