Skip to content

Commit

Permalink
fix: only error when validator set is empty due to rpc error
Browse files Browse the repository at this point in the history
  • Loading branch information
jim380 committed Sep 17, 2023
1 parent d9f07d3 commit 481f917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func GetData(cfg *config.Config, blockHeight int64, blockData Blocks, denom stri
rd.getValidator(*cfg)
// TO-DO if consumer chain, use cosmoshub's ConsPubKey
valMap, found := rd.Validatorsets[rd.Validator.ConsPubKey.Key]
if !found {
if len(rd.Validatorsets) != 0 && !found {
zap.L().Fatal("", zap.Bool("Success", false), zap.String("err", "Validator not found in the active set"))
}

Expand Down

0 comments on commit 481f917

Please sign in to comment.