Skip to content

Commit

Permalink
use ctx in CurrentHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
battlmonstr committed Apr 9, 2024
1 parent a186dda commit dcdad45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turbo/execution/eth1/getters.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func (e *EthereumExecutionModule) CurrentHeader(ctx context.Context, _ *emptypb.
defer tx.Rollback()
hash := rawdb.ReadHeadHeaderHash(tx)
number := rawdb.ReadHeaderNumber(tx, hash)
h, err := e.blockReader.Header(context.Background(), tx, hash, *number)
h, err := e.blockReader.Header(ctx, tx, hash, *number)
if err != nil {
return nil, fmt.Errorf("ethereumExecutionModule.CurrentHeader: blockReader.Header error %w", err)
}
Expand Down

0 comments on commit dcdad45

Please sign in to comment.