Skip to content

Commit 85a7b20

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

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
@@ -42,7 +42,6 @@ const (
4242
// maxBlockFetchers is the max number of goroutines to spin up to pull blocks
4343
// for the fee history calculation (mostly relevant for LES).
4444
maxBlockFetchers = 4
45-
maxQueryLimit = 100
4645
)
4746

4847
// blockFees represents a single block for processing
@@ -220,9 +219,6 @@ func (oracle *Oracle) FeeHistory(ctx context.Context, blocks uint64, unresolvedL
220219
if len(rewardPercentiles) != 0 {
221220
maxFeeHistory = oracle.maxBlockHistory
222221
}
223-
if len(rewardPercentiles) > maxQueryLimit {
224-
return common.Big0, nil, nil, nil, fmt.Errorf("%w: over the query limit %d", errInvalidPercentile, maxQueryLimit)
225-
}
226222
if blocks > maxFeeHistory {
227223
log.Warn("Sanitizing fee history length", "requested", blocks, "truncated", maxFeeHistory)
228224
blocks = maxFeeHistory

0 commit comments

Comments
 (0)