-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There's a case where Keepers registers a filter with one name, then unregisters it, then re-registers a filter with the same name. There was an optimization where instead of computing the hash of the events & topics for a filter in two different for loops, it saves it the first time and looks it up in a map the second time. But the keys for the map were the filter names. The first loop deals with removed filters and the second with new filters. They both had the same filter name, but different addresses & topics. This might be a bug in Keepers, but I can at least make this code more robust since it should be possible to update a filter's topics & addresses but keep the name the same.
- Loading branch information
1 parent
a0c3219
commit ff161eb
Showing
1 changed file
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters