mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-14 12:06:40 +00:00
Fix atomicity
This commit is contained in:
parent
9d604b88d1
commit
e089c77aa3
1 changed files with 8 additions and 3 deletions
|
|
@ -139,9 +139,14 @@ func (f *Filter) Logs(ctx context.Context) ([]*types.Log, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
end, err := resolveSpecial(f.end)
|
var end uint64
|
||||||
if err != nil {
|
if f.begin != f.end {
|
||||||
return nil, err
|
end, err = resolveSpecial(f.end)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
end = begin
|
||||||
}
|
}
|
||||||
if begin > end {
|
if begin > end {
|
||||||
return nil, errInvalidBlockRange
|
return nil, errInvalidBlockRange
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue