Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1051 from irisnet/kaifei-bianjie-patch-1-1
Browse files Browse the repository at this point in the history
R4R: fix miss validator data
  • Loading branch information
zhangjinbiao746 authored Sep 19, 2019
2 parents c0982ba + 47711a1 commit f5c306a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/service/service_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,10 @@ func (service *ValidatorService) QueryValidatorByConAddr(address string) documen

func buildValidators() []document.Validator {

res := lcd.Validators(1, 200)
res := lcd.Validators(1, 100)
if res2 := lcd.Validators(2, 100); len(res2) > 0 {
res = append(res, res2...)
}

var result []document.Validator
var buildValidator = func(v lcd.ValidatorVo) (document.Validator, error) {
Expand Down

0 comments on commit f5c306a

Please sign in to comment.