Add historic event indexing

This commit is contained in:
Ian Davis
2022-11-15 15:28:24 +00:00
parent 907c201912
commit 0e8dd9efc5
7 changed files with 692 additions and 10 deletions
+1 -1
View File
@@ -1247,7 +1247,7 @@ func ethFilterResultFromEvents(evs []*filter.CollectedEvent) (*api.EthFilterResu
var err error
for _, entry := range ev.Event.Entries {
for _, entry := range ev.Entries {
hash := api.EthHashData(entry.Value)
if entry.Key == ethTopic1 || entry.Key == ethTopic2 || entry.Key == ethTopic3 || entry.Key == ethTopic4 {
log.Topics = append(log.Topics, hash)