aboutsummaryrefslogtreecommitdiffstats
path: root/logger
diff options
context:
space:
mode:
authorNick Johnson <arachnid@notdot.net>2016-12-20 09:00:03 +0800
committerFelix Lange <fjl@users.noreply.github.com>2016-12-20 09:00:03 +0800
commit1fe67c125d85881cf8c23cd0f08c4a06946793bd (patch)
treeeb717f357d0d83fb1014ab1089a8f0f566a07c1c /logger
parentba996f5e27572e853bcc5c815ae72082a15c9183 (diff)
downloadgo-tangerine-1fe67c125d85881cf8c23cd0f08c4a06946793bd.tar
go-tangerine-1fe67c125d85881cf8c23cd0f08c4a06946793bd.tar.gz
go-tangerine-1fe67c125d85881cf8c23cd0f08c4a06946793bd.tar.bz2
go-tangerine-1fe67c125d85881cf8c23cd0f08c4a06946793bd.tar.lz
go-tangerine-1fe67c125d85881cf8c23cd0f08c4a06946793bd.tar.xz
go-tangerine-1fe67c125d85881cf8c23cd0f08c4a06946793bd.tar.zst
go-tangerine-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 'logger')
0 files changed, 0 insertions, 0 deletions