mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
Lazy fix for eth_getLogs (#1620)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
This commit is contained in:
parent
0685250095
commit
3b18c02edf
@ -78,11 +78,11 @@ func (api *APIImpl) GetLogs(ctx context.Context, crit filters.FilterCriteria) ([
|
||||
}
|
||||
|
||||
begin = latest
|
||||
if crit.FromBlock != nil {
|
||||
if crit.FromBlock != nil && crit.FromBlock.Sign() > 0 {
|
||||
begin = crit.FromBlock.Uint64()
|
||||
}
|
||||
end = latest
|
||||
if crit.ToBlock != nil {
|
||||
if crit.ToBlock != nil && crit.ToBlock.Sign() > 0 {
|
||||
end = crit.ToBlock.Uint64()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user