core/bloombits: use general filters instead of addresses and topics

This commit is contained in:
Zsolt Felfoldi
2017-09-06 02:33:10 +02:00
committed by Péter Szilágyi
parent 6ff2c02991
commit 451ffdb62b
3 changed files with 34 additions and 47 deletions

View File

@ -94,10 +94,8 @@ func testMatcherBothModes(t *testing.T, filter [][]bloomIndexes, blocks uint64,
// number of requests made for cross validation between different modes.
func testMatcher(t *testing.T, filter [][]bloomIndexes, blocks uint64, intermittent bool, retrievals uint32, maxReqCount int) uint32 {
// Create a new matcher an simulate our explicit random bitsets
matcher := NewMatcher(testSectionSize, nil, nil)
matcher.addresses = filter[0]
matcher.topics = filter[1:]
matcher := NewMatcher(testSectionSize, nil)
matcher.filters = filter
for _, rule := range filter {
for _, topic := range rule {