diff options
author | Nick Johnson <arachnid@notdot.net> | 2016-12-20 09:00:03 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2016-12-20 09:00:03 +0800 |
commit | 1fe67c125d85881cf8c23cd0f08c4a06946793bd (patch) | |
tree | eb717f357d0d83fb1014ab1089a8f0f566a07c1c /Makefile | |
parent | ba996f5e27572e853bcc5c815ae72082a15c9183 (diff) | |
download | dexon-1fe67c125d85881cf8c23cd0f08c4a06946793bd.tar dexon-1fe67c125d85881cf8c23cd0f08c4a06946793bd.tar.gz dexon-1fe67c125d85881cf8c23cd0f08c4a06946793bd.tar.bz2 dexon-1fe67c125d85881cf8c23cd0f08c4a06946793bd.tar.lz dexon-1fe67c125d85881cf8c23cd0f08c4a06946793bd.tar.xz dexon-1fe67c125d85881cf8c23cd0f08c4a06946793bd.tar.zst dexon-1fe67c125d85881cf8c23cd0f08c4a06946793bd.zip |
eth/filters: add FindOnce for iterator-like operation (#3435)
This commit introduces a FindOnce method for filters. FindOnce finds the next block that
matches the filter and returns all matching logs from that block. If there are no further
matching logs, it returns a nil slice. This method allows callers to iterate over large
sets of logs progressively.
The changes introduce a small inefficiency relating to mipmaps: the first time a filter is
called, it acts as if all mipmaps are matched, and thus iterates several blocks near the
requested start point. This is in the interest of simplicity and avoiding duplicate mipmap
lookups each time FindOnce is called.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions