Skip to content

Commit d321195

Browse files
committed
Revert "eth/gasprice: add query limit for FeeHistory to defend DDOS attack (ethereum#29644)"
This reverts commit 7c5a808.
1 parent 848398d commit d321195

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

eth/gasprice/feehistory.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ const (
4444
// maxBlockFetchers is the max number of goroutines to spin up to pull blocks
4545
// for the fee history calculation (mostly relevant for LES).
4646
maxBlockFetchers = 4
47-
maxQueryLimit = 100
4847
)
4948

5049
// blockFees represents a single block for processing
@@ -241,9 +240,6 @@ func (oracle *Oracle) FeeHistory(ctx context.Context, blocks uint64, unresolvedL
241240
if len(rewardPercentiles) != 0 {
242241
maxFeeHistory = oracle.maxBlockHistory
243242
}
244-
if len(rewardPercentiles) > maxQueryLimit {
245-
return common.Big0, nil, nil, nil, nil, nil, fmt.Errorf("%w: over the query limit %d", errInvalidPercentile, maxQueryLimit)
246-
}
247243
if blocks > maxFeeHistory {
248244
log.Warn("Sanitizing fee history length", "requested", blocks, "truncated", maxFeeHistory)
249245
blocks = maxFeeHistory

0 commit comments

Comments
 (0)