quorum/eth/filters
Nick Johnson 1fe67c125d 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.
2016-12-20 02:00:03 +01:00
..
api.go core, core/vm, eth/filters: move Removed field into vm.Log 2016-12-05 10:57:11 +01:00
api_test.go eth/filter: add support for pending logs (#3219) 2016-11-28 14:59:06 +01:00
filter.go eth/filters: add FindOnce for iterator-like operation (#3435) 2016-12-20 02:00:03 +01:00
filter_system.go core, core/vm, eth/filters: move Removed field into vm.Log 2016-12-05 10:57:11 +01:00
filter_system_test.go core, core/vm, eth/filters: move Removed field into vm.Log 2016-12-05 10:57:11 +01:00
filter_test.go eth/filter: add support for pending logs (#3219) 2016-11-28 14:59:06 +01:00