Skip to content

Commit

Permalink
Merge pull request #93 from cosmos-gaminghub/fix/api/validators
Browse files Browse the repository at this point in the history
Fix uptime in validator list
  • Loading branch information
EG-easy authored Mar 1, 2022
2 parents 7c02183 + 2380d3c commit b7423bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orm/document/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (v Validator) GetValidatorList() ([]Validator, error) {
var query = orm.NewQuery()
defer query.Release()

var selector = bson.M{"description.moniker": 1, "description.identity": 1, "total_missed_block": 1, "operator_address": 1, "tokens": 1, "commission": 1, "jailed": 1, "status": 1}
var selector = bson.M{"description.moniker": 1, "description.identity": 1, "total_missed_block": 1, "operator_address": 1, "tokens": 1, "commission": 1, "jailed": 1, "status": 1, "consensus_address": 1}

err := queryAll(CollectionNmValidator, selector, nil, desc(ValidatorFieldTokens), 0, &validatorsDocArr)
return validatorsDocArr, err
Expand Down

0 comments on commit b7423bf

Please sign in to comment.