Skip to content

Commit

Permalink
Update rollup/cmd/gas_oracle/app/app.go
Browse files Browse the repository at this point in the history
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
  • Loading branch information
colinlyguo and Thegaram authored Sep 4, 2023
1 parent a1304ea commit d01bdd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollup/cmd/gas_oracle/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func action(ctx *cli.Context) error {
go utils.LoopWithContext(subCtx, 10*time.Second, func(ctx context.Context) {
// Fetch the latest block number to decrease the delay when fetching gas prices
// Use latest block number - 1 to prevent frequent reorg
number, loopErr := butils.GetLatestConfirmedBlockNumber(ctx, l1client, -2)
number, loopErr := butils.GetLatestConfirmedBlockNumber(ctx, l1client, 2)
if loopErr != nil {
log.Error("failed to get block number", "err", loopErr)
return
Expand Down

0 comments on commit d01bdd2

Please sign in to comment.