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

R4R: Remove Height Flag from CLI Queries #3883 #3910

Merged
merged 2 commits into from
Mar 16, 2019
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
1 change: 1 addition & 0 deletions .pending/bugfixes/gaiacli/3883-Remove-Height-F
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#3883 Remove Height Flag from CLI Queries
1 change: 0 additions & 1 deletion client/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ func GetCommands(cmds ...*cobra.Command) []*cobra.Command {
c.Flags().Bool(FlagTrustNode, false, "Trust connected full node (don't verify proofs for responses)")
c.Flags().Bool(FlagUseLedger, false, "Use a connected Ledger device")
c.Flags().String(FlagNode, "tcp://localhost:26657", "<host>:<port> to tendermint rpc interface for this chain")
c.Flags().Int64(FlagHeight, 0, "block height to query, omit to get most recent provable block")
viper.BindPFlag(FlagTrustNode, c.Flags().Lookup(FlagTrustNode))
viper.BindPFlag(FlagUseLedger, c.Flags().Lookup(FlagUseLedger))
viper.BindPFlag(FlagNode, c.Flags().Lookup(FlagNode))
Expand Down
6 changes: 0 additions & 6 deletions docs/gaia/gaiacli.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,6 @@ Or if you want to check all your current delegations with disctinct validators:
gaiacli query staking delegations <delegator_addr>
```

You can also get previous delegation(s) status by adding the `--height` flag.

#### Unbond Tokens

If for any reason the validator misbehaves, or you just want to unbond a certain amount of tokens, use this following command. You can unbond a specific `shares-amount` (eg:`12.1`\) or a `shares-fraction` (eg:`0.25`) with the corresponding flags.
Expand Down Expand Up @@ -410,8 +408,6 @@ Additionally, as you can get all the unbonding-delegations from a particular val
gaiacli query staking unbonding-delegations-from <account_cosmosval>
```

To get previous unbonding-delegation(s) status on past blocks, try adding the `--height` flag.

#### Redelegate Tokens

A redelegation is a type delegation that allows you to bond illiquid tokens from one validator to another:
Expand Down Expand Up @@ -449,8 +445,6 @@ Additionally, as you can get all the outgoing redelegations from a particular va
gaiacli query staking redelegations-from <account_cosmosval>
```

To get previous redelegation(s) status on past blocks, try adding the `--height` flag.

#### Query Parameters

Parameters define high level settings for staking. You can get the current values by using:
Expand Down
6 changes: 0 additions & 6 deletions docs/translations/kr/gaia/gaiacli.md
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,6 @@ gaiacli query staking delegation <delegator_addr(위임자 코스모스 주소)>
gaiacli query staking delegation <delegator_addr(위임자 코스모스 주소)>
```

과거 위임 기록에 대해서는 `--height` 플래그를 추가 하셔서 해당 블록 높이에 대한 기록을 조회하실 수 있습니다.

#### 토큰 언본딩 하기

만약 특정 검증인이 악의적인 행동을 했거나 또는 본인이 개인적인 이유로 일부 토큰을 언본딩을 워하는 경우 다음 명령어를 통해 토큰을 언본딩 할 수 있습니다. 언본딩은 정확한 수량인 `shares-amount`(예시, `12.1`) 또는 언본딩을 원하는 물량의 비율인 `shares-fraction`(예시, `0.25`) 값으로 표현될 수 있습니다.
Expand Down Expand Up @@ -408,8 +406,6 @@ gaiacli query staking unbonding-delegations <account_cosmos(위임자 주소)>
gaiacli query staking unbonding-delegations-from <account_cosmosval(검증인 cosmosval 주소)>
```

과거 언본딩 정보는 `--height` 플래그를 통해서 특정 블록 높이에 대한 언본딩 정보를 조회할 수 있습니다.

#### 재위임(Redelegate) 하기

재위임이란 본딩 되어있는 토큰을 한 검증인으로 부터 다른 검증인으로 옮기는 것입니다:
Expand Down Expand Up @@ -447,8 +443,6 @@ gaiacli query staking redelegations <account_cosmos(위임자 코스모스 주
gaiacli query staking redelegations-from <account_cosmosval(검증인 주소)>
```

과거 재위임에 대한 정보는 다른 트랜잭션과 동일하게 `--height` 플래그를 이용하여 특정 블록 높이에 대한 재위임 정보를 확인하실 수 있습니다.

#### 파라미터 조회

파라미터는 스테이킹의 하이-레벨 설정을 정의합니다. 현재 값은 다음 명령어를 통해서 조회할 수 있습니다:
Expand Down