fix: events: don't set GC confidence to 1

The function/parameter were poorly named and should never have been
exposed. "GC" confidence should always be the same, this parameter
doesn't let us actually set the _confidence_, just the point before
which we no longer support reverts.

fixes #10706
This commit is contained in:
Steven Allen
2023-04-20 14:45:55 -07:00
parent e16fc110d9
commit c84c07eb74
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ func EthEventAPI(cfg config.FevmConfig) func(helpers.MetricsCtx, repo.LockedRepo
lc.Append(fx.Hook{
OnStart: func(context.Context) error {
ev, err := events.NewEventsWithConfidence(ctx, &evapi, ChainHeadConfidence)
ev, err := events.NewEvents(ctx, &evapi)
if err != nil {
return err
}
+1 -3
View File
@@ -54,12 +54,10 @@ func EthModuleAPI(cfg config.FevmConfig) func(helpers.MetricsCtx, repo.LockedRep
}
}
const ChainHeadConfidence = 1
ctx := helpers.LifecycleCtx(mctx, lc)
lc.Append(fx.Hook{
OnStart: func(context.Context) error {
ev, err := events.NewEventsWithConfidence(ctx, &evapi, ChainHeadConfidence)
ev, err := events.NewEvents(ctx, &evapi)
if err != nil {
return err
}