Skip to content

Commit

Permalink
eth/filters: pending logs maybe null
Browse files Browse the repository at this point in the history
Signed-off-by: jsvisa <delweng@gmail.com>
  • Loading branch information
jsvisa committed May 23, 2023
1 parent 5167b95 commit f54f906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/filters/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ func (f *Filter) checkMatches(ctx context.Context, header *types.Header) ([]*typ
func (f *Filter) pendingLogs() []*types.Log {
block, receipts := f.sys.backend.PendingBlockAndReceipts()
if block == nil {
return nil, errors.New("pending state not available")
return nil
}
if bloomFilter(block.Bloom(), f.addresses, f.topics) {
var unfiltered []*types.Log
Expand Down

0 comments on commit f54f906

Please sign in to comment.