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 GitHub
parent e5e97ce1f0
commit db726a0a3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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