mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
remove unecessary check
This commit is contained in:
parent
52221ae8cf
commit
03b8cc8eb9
1 changed files with 0 additions and 5 deletions
|
|
@ -50,8 +50,6 @@ type resultStore struct {
|
|||
// pendingGasUsed tracks the current total gas used of all in-flight bodies
|
||||
pendingGasUsed uint64
|
||||
|
||||
targetGasScheduled uint64
|
||||
|
||||
lock sync.RWMutex
|
||||
}
|
||||
|
||||
|
|
@ -112,9 +110,6 @@ func (r *resultStore) AddFetch(header *types.Header, snapSync bool) (stale, thro
|
|||
return stale, throttled, item, err
|
||||
}
|
||||
if item == nil {
|
||||
if header.GasUsed+r.pendingGasUsed > r.targetGasScheduled {
|
||||
return false, true, nil, nil
|
||||
}
|
||||
item = newFetchResult(header, snapSync)
|
||||
r.items[index] = item
|
||||
r.pendingCount++
|
||||
|
|
|
|||
Loading…
Reference in a new issue