feat: Make sure we dont store duplidate actor events caused by reorgs

This commit is contained in:
Fridrik Asmundsson
2023-06-30 11:20:57 +00:00
parent 30a9f63165
commit b80c0828b9
3 changed files with 282 additions and 51 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ func EthEventAPI(cfg config.FevmConfig) func(helpers.MetricsCtx, repo.LockedRepo
}
var err error
eventIndex, err = filter.NewEventIndex(dbPath)
eventIndex, err = filter.NewEventIndex(ctx, dbPath, chainapi.Chain)
if err != nil {
return nil, err
}