Skip to content

Commit

Permalink
update submit-consumer-misbehaviour cli description
Browse files Browse the repository at this point in the history
  • Loading branch information
sainoe committed Jul 21, 2023
1 parent f4c7e73 commit b60499c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions x/ccv/provider/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,17 @@ $ %s tx provider register-consumer-reward-denom untrn --from mykey

func NewSubmitConsumerMisbehaviourCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "submit-consumer-misbehaviour [misbeaviour]",
Short: "submit a light client misbehaviour for a consumer chain",
Args: cobra.ExactArgs(1),
Use: "submit-consumer-misbehaviour [misbehaviour]",
Short: "submit a IBC misbehaviour for a consumer chain",
Long: strings.TrimSpace(
fmt.Sprintf(`Submit a IBC misbehaviour detected on a consumer chain.
A IBC misbehaviour contains two conflicting IBC client headers, which are used to form a light client attack evidence.
The misbehaviour type definition can be found in the IBC client messages, see ibc-go/proto/ibc/core/client/v1/tx.proto`.

Examples:
%s tx provider submit-consumer-misbehaviour [path/to/misbehaviour.json] --from node0 --home ../node0 --chain-id $CID
`, version.AppName)),
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientTxContext(cmd)
if err != nil {
Expand Down

0 comments on commit b60499c

Please sign in to comment.