Skip to content

Commit

Permalink
fix: Set validator delegations limit (#32)
Browse files Browse the repository at this point in the history
Use the global config limit (defaults to 1000)
  • Loading branch information
AndreMiras authored Feb 21, 2023
1 parent 3773a8f commit 17f5007
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,12 @@ func ValidatorHandler(w http.ResponseWriter, r *http.Request, grpcConn *grpc.Cli
stakingClient := stakingtypes.NewQueryClient(grpcConn)
stakingRes, err := stakingClient.ValidatorDelegations(
context.Background(),
&stakingtypes.QueryValidatorDelegationsRequest{ValidatorAddr: myAddress.String()},
&stakingtypes.QueryValidatorDelegationsRequest{
ValidatorAddr: myAddress.String(),
Pagination: &querytypes.PageRequest{
Limit: Limit,
},
},
)
if err != nil {
sublogger.Error().
Expand Down

0 comments on commit 17f5007

Please sign in to comment.