Skip to content

Commit

Permalink
Update eth/api.go
Browse files Browse the repository at this point in the history
Co-authored-by: Péter Garamvölgyi <[email protected]>
  • Loading branch information
omerfirmak and Thegaram authored Sep 17, 2024
1 parent d9fd14f commit ce6861b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ func (api *ScrollAPI) CalculateRowConsumptionByBlockNumber(ctx context.Context,
// todo: fix temp AsyncChecker leaking the internal Checker instances
var checkErr error
asyncChecker := ccc.NewAsyncChecker(api.eth.blockchain, 1, false).WithOnFailingBlock(func(b *types.Block, err error) {
log.Error("failed to calculate row consumption on demand", "number", number, "hash", b.Hash(), "err", err)
log.Error("failed to calculate row consumption on demand", "number", number, "hash", b.Hash().Hex(), "err", err)
checkErr = err
})
if err := asyncChecker.Check(block); err != nil {
Expand Down

0 comments on commit ce6861b

Please sign in to comment.