Skip to content

Commit

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

Should hopefully help with Issue erigontech#7172
  • Loading branch information
yperbasis authored and calmbeing committed Apr 24, 2023
1 parent b9b2565 commit ef7dde3
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 @@ -728,6 +728,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 @@ -753,6 +754,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 ef7dde3

Please sign in to comment.