mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "graphql: logs return error if from block > to (#28412)"
This reverts commit 528758f2a9.
This commit is contained in:
parent
d1a79dc19c
commit
ec5e951acc
1 changed files with 0 additions and 3 deletions
|
|
@ -1417,9 +1417,6 @@ func (r *Resolver) Logs(ctx context.Context, args struct{ Filter FilterCriteria
|
||||||
if args.Filter.ToBlock != nil {
|
if args.Filter.ToBlock != nil {
|
||||||
end = int64(*args.Filter.ToBlock)
|
end = int64(*args.Filter.ToBlock)
|
||||||
}
|
}
|
||||||
if begin > 0 && end > 0 && begin > end {
|
|
||||||
return nil, errInvalidBlockRange
|
|
||||||
}
|
|
||||||
var addresses []common.Address
|
var addresses []common.Address
|
||||||
if args.Filter.Addresses != nil {
|
if args.Filter.Addresses != nil {
|
||||||
addresses = *args.Filter.Addresses
|
addresses = *args.Filter.Addresses
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue