Skip to content

Commit

Permalink
addressed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnya97 committed Nov 4, 2018
1 parent 0fc536a commit 4c3ac3f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/sdk/clients.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,13 @@ Additionally, as you can get all the outgoing redelegations from a particular va

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

##### Query Delegations To Validator

You can also query all of the delegations to a particular validator:
```bash
gaiacli query delegations-to <account_cosmosval>
```

### Governance

Governance is the process from which users in the Cosmos Hub can come to consensus on software upgrades, parameters of the mainnet or on custom text proposals. This is done through voting on proposals, which will be submitted by `Atom` holders on the mainnet.
Expand Down
7 changes: 7 additions & 0 deletions x/stake/keeper/delegation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ func TestDelegation(t *testing.T) {
resVals = keeper.GetDelegatorValidators(ctx, addrDels[1], 4)
require.Equal(t, 3, len(resVals))

resDels := keeper.GetValidatorDelegations(ctx, addrVals[0])
require.Len(t, resDels, 2)
resDels = keeper.GetValidatorDelegations(ctx, addrVals[1])
require.Len(t, resDels, 2)
resDels = keeper.GetValidatorDelegations(ctx, addrVals[2])
require.Len(t, resDels, 2)

for i := 0; i < 3; i++ {

resVal, err := keeper.GetDelegatorValidator(ctx, addrDels[0], addrVals[i])
Expand Down

0 comments on commit 4c3ac3f

Please sign in to comment.