mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
fix return values after cherry-pick
This commit is contained in:
parent
4408ba2d7e
commit
fce2b5b86c
1 changed files with 1 additions and 1 deletions
|
|
@ -242,7 +242,7 @@ func (oracle *Oracle) FeeHistory(ctx context.Context, blocks uint64, unresolvedL
|
||||||
maxFeeHistory = oracle.maxBlockHistory
|
maxFeeHistory = oracle.maxBlockHistory
|
||||||
}
|
}
|
||||||
if len(rewardPercentiles) > maxQueryLimit {
|
if len(rewardPercentiles) > maxQueryLimit {
|
||||||
return common.Big0, nil, nil, nil, fmt.Errorf("%w: over the query limit %d", errInvalidPercentile, maxQueryLimit)
|
return common.Big0, nil, nil, nil, nil, nil, fmt.Errorf("%w: over the query limit %d", errInvalidPercentile, maxQueryLimit)
|
||||||
}
|
}
|
||||||
if blocks > maxFeeHistory {
|
if blocks > maxFeeHistory {
|
||||||
log.Warn("Sanitizing fee history length", "requested", blocks, "truncated", maxFeeHistory)
|
log.Warn("Sanitizing fee history length", "requested", blocks, "truncated", maxFeeHistory)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue