Skip to content

Commit

Permalink
service.go
Browse files Browse the repository at this point in the history
  • Loading branch information
intls committed Jan 6, 2025
1 parent ddfabe3 commit 736ad01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stakerservice/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ func (s *StakerService) withdrawableTransactions(_ *rpctypes.Context, offset, li
lastIdx := "0"
if len(stakingDetails) > 0 {
// this should ease up pagination i.e in case when whe have 1000 transactions, and we limit query to 50
// due to filetring we can retrun response with 50 transactions when last one have index 400,
// due to filtering we can return response with 50 transactions when last one have index 400,
// then caller can specify offset=400 and get next withdrawable transactions.
lastIdx = stakingDetails[len(stakingDetails)-1].TransactionIdx
}
Expand Down

0 comments on commit 736ad01

Please sign in to comment.