Release transaction in EngineGetPayloadBodiesByRangeV1 (and by hash) (#7199)

Should hopefully help with Issue #7172
This commit is contained in:
Andrew Ashikhmin 2023-03-28 17:27:14 +02:00 committed by Alexey Sharp
parent 8ad4870428
commit b8eaf78b17

View File

@ -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))
@ -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)