go-ethereum/eth/filters
Péter Szilágyi 2ab2a9f131 core/bloombits, eth/filters: handle null topics (#15195)
When implementing the new bloombits based filter, I've accidentally broke null
topics by removing the special casing of common.Hash{} filter rules, which
acted as the wildcard topic until now.

This PR fixes the regression, but instead of using the magic hash
common.Hash{} as the null wildcard, the PR reworks the code to handle nil
topics during parsing, converting a JSON null into nil []common.Hash topic.
2017-09-27 12:14:52 +02:00
..
api_test.go core/bloombits, eth/filters: handle null topics (#15195) 2017-09-27 12:14:52 +02:00
api.go core/bloombits, eth/filters: handle null topics (#15195) 2017-09-27 12:14:52 +02:00
bench_test.go core/bloombits: AddBloom index parameter and fixes variable names 2017-09-06 11:14:20 +03:00
filter_system_test.go core/bloombits, eth/filters: handle null topics (#15195) 2017-09-27 12:14:52 +02:00
filter_system.go core/bloombits, eth/filters: handle null topics (#15195) 2017-09-27 12:14:52 +02:00
filter_test.go core, eth: clean up bloom filtering, add some tests 2017-09-06 11:14:19 +03:00
filter.go core/bloombits, eth/filters: handle null topics (#15195) 2017-09-27 12:14:52 +02:00