mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
fix raise pruned history error in genesis block ( block 0)
This commit is contained in:
parent
2a1784baef
commit
f667d4cafe
1 changed files with 1 additions and 1 deletions
|
|
@ -359,7 +359,7 @@ func (api *FilterAPI) GetLogs(ctx context.Context, crit FilterCriteria) ([]*type
|
||||||
if begin > 0 && end > 0 && begin > end {
|
if begin > 0 && end > 0 && begin > end {
|
||||||
return nil, errInvalidBlockRange
|
return nil, errInvalidBlockRange
|
||||||
}
|
}
|
||||||
if begin > 0 && begin < int64(api.events.backend.HistoryPruningCutoff()) {
|
if begin >= 0 && begin < int64(api.events.backend.HistoryPruningCutoff()) {
|
||||||
return nil, &history.PrunedHistoryError{}
|
return nil, &history.PrunedHistoryError{}
|
||||||
}
|
}
|
||||||
// Construct the range filter
|
// Construct the range filter
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue