Skip to content

Commit a37729f

Browse files
committed
Implement transactions bloom filter and subql apis
1 parent 1ca9902 commit a37729f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

SUBQL.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
Many other networks and L2s use forks of geth we can apply the changes to these forks using the following steps
88

99
1. Generate a patch between the feature branch and master
10+
<<<<<<< HEAD
1011
`git format-patch --stdout <sha1>..<sha2> > subql.patch`
12+
=======
13+
`git format-patch --stdout master > subql.patch`
14+
>>>>>>> db90ac101 (Implement transactions bloom filter and subql apis)
1115
1216
2. In the for repo ensure that the subquery geth for is a remote
1317

@@ -27,7 +31,10 @@ This will apply the changes but may require resolving some conflicts
2731
These forks are generally behind the master geth branch. This can mean that further changes are requied to get builds suceeding.
2832

2933
It's suggested to create a patch or patches of these changes to make it easier to sync changes from the fork and from geth in the future
34+
<<<<<<< HEAD
3035

3136
You can do this by repeating steps 1, 3
3237

3338
e.g `git format-patch --stdout 2d772be398d851a62be53d1b0c162c45bb4876e3..c9760f18c15b8d36af7ef1a9bf5b21056f633b71 > build_fixes.patch`
39+
=======
40+
>>>>>>> db90ac101 (Implement transactions bloom filter and subql apis)

eth/filters/filter.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ func (f *Filter) Logs(ctx context.Context) ([]*types.Log, error) {
202202
return logs, nil
203203
}
204204
logs = append(logs, log)
205+
if checkLimit() {
206+
return logs, nil
207+
}
205208
case err := <-errChan:
206209
return logs, err
207210
}

0 commit comments

Comments
 (0)