Skip to content

Commit

Permalink
Release transaction in EngineGetPayloadBodiesByRangeV1 (and by hash) (#…
Browse files Browse the repository at this point in the history
…7199)

Should hopefully help with Issue #7172
  • Loading branch information
yperbasis authored and Alexey Sharp committed Mar 28, 2023
1 parent 8ad4870 commit b8eaf78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ethdb/privateapi/ethbackend.go
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@ func (s *EthBackendServer) EngineGetPayloadBodiesByHashV1(ctx context.Context, r
if err != nil {
return nil, err
}
defer tx.Rollback()

bodies := make([]*types2.ExecutionPayloadBodyV1, len(request.Hashes))

Expand All @@ -738,6 +739,7 @@ func (s *EthBackendServer) EngineGetPayloadBodiesByRangeV1(ctx context.Context,
if err != nil {
return nil, err
}
defer tx.Rollback()

bodies := make([]*types2.ExecutionPayloadBodyV1, 0, request.Count)

Expand Down

0 comments on commit b8eaf78

Please sign in to comment.