Skip to content

Commit

Permalink
Feat: lower MaxResultsPerChain from 50 to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasse committed Apr 1, 2024
1 parent bf0e73d commit 46ea532
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ethergo/submitter/db/txdb/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ func (s *Store) MarkAllBeforeOrAtNonceReplacedOrConfirmed(ctx context.Context, s
// MaxResultsPerChain is the maximum number of transactions to return per chain id.
// it is exported for testing.
// TODO: this should be an option passed to the GetTXs function.
const MaxResultsPerChain = 50
// TODO: temporarily reduced from 50 to 1 to increase resiliency.
const MaxResultsPerChain = 1

func statusToArgs(matchStatuses ...db.Status) []int {
inArgs := make([]int, len(matchStatuses))
Expand Down

0 comments on commit 46ea532

Please sign in to comment.