-
Couldn't load subscription status.
- Fork 159
Remove customlogs package
#1371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
e625127
7d8a7e5
3f62f7c
a4f4590
089471a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,7 +34,6 @@ import ( | |
| "math/big" | ||
|
|
||
| "github.com/ava-labs/coreth/core/bloombits" | ||
| "github.com/ava-labs/coreth/plugin/evm/customlogs" | ||
| "github.com/ava-labs/coreth/rpc" | ||
| "github.com/ava-labs/libevm/common" | ||
| "github.com/ava-labs/libevm/core/types" | ||
|
|
@@ -343,8 +342,10 @@ func (f *Filter) checkMatches(ctx context.Context, header *types.Header) ([]*typ | |
| return nil, err | ||
| } | ||
|
|
||
| unfiltered := customlogs.FlattenLogs(logsList) | ||
| logs := filterLogs(unfiltered, nil, nil, f.addresses, f.topics) | ||
| var logs []*types.Log | ||
| for _, txLogs := range logsList { | ||
| logs = append(logs, filterLogs(txLogs, nil, nil, f.addresses, f.topics)...) | ||
| } | ||
| if len(logs) == 0 { | ||
| return nil, nil | ||
| } | ||
|
|
@@ -357,11 +358,14 @@ func (f *Filter) checkMatches(ctx context.Context, header *types.Header) ([]*typ | |
| if err != nil { | ||
| return nil, err | ||
| } | ||
| unfiltered = unfiltered[:0] | ||
| var receiptLogs [][]*types.Log | ||
| for _, receipt := range receipts { | ||
| unfiltered = append(unfiltered, receipt.Logs...) | ||
| receiptLogs = append(receiptLogs, receipt.Logs) | ||
| } | ||
| logs = logs[:0] // reset the slice | ||
|
||
| for _, txLogs := range receiptLogs { | ||
| logs = append(logs, filterLogs(txLogs, nil, nil, f.addresses, f.topics)...) | ||
| } | ||
| logs = filterLogs(unfiltered, nil, nil, f.addresses, f.topics) | ||
|
|
||
| return logs, nil | ||
| } | ||
|
|
||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.