core/bloombits: drop nil-matcher special case

This commit is contained in:
Péter Szilágyi
2017-09-06 11:12:53 +03:00
parent 451ffdb62b
commit 564c8f3ae6
2 changed files with 7 additions and 10 deletions

View File

@ -51,6 +51,11 @@ func TestMatcherRandom(t *testing.T) {
}
}
// Tests that matching on everything doesn't crash (special case internally).
func TestWildcardMatcher(t *testing.T) {
testMatcherBothModes(t, nil, 10000, 0)
}
// makeRandomIndexes generates a random filter system, composed on multiple filter
// criteria, each having one bloom list component for the address and arbitrarilly
// many topic bloom list components.