Skip to content

Commit

Permalink
Fix uptime in validator list
Browse files Browse the repository at this point in the history
  • Loading branch information
padi-dev-hoangpa committed Mar 1, 2022
1 parent a91e45f commit 2380d3c
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 2380d3c

Please sign in to comment.