mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
Release transaction in EngineGetPayloadBodiesByRangeV1 (and by hash) (#7199)
Should hopefully help with Issue #7172
This commit is contained in:
parent
e5e97ce1f0
commit
db726a0a3d
@ -728,6 +728,7 @@ func (s *EthBackendServer) EngineGetPayloadBodiesByHashV1(ctx context.Context, r
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
defer tx.Rollback()
|
||||||
|
|
||||||
bodies := make([]*types2.ExecutionPayloadBodyV1, len(request.Hashes))
|
bodies := make([]*types2.ExecutionPayloadBodyV1, len(request.Hashes))
|
||||||
|
|
||||||
@ -753,6 +754,7 @@ func (s *EthBackendServer) EngineGetPayloadBodiesByRangeV1(ctx context.Context,
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
defer tx.Rollback()
|
||||||
|
|
||||||
bodies := make([]*types2.ExecutionPayloadBodyV1, 0, request.Count)
|
bodies := make([]*types2.ExecutionPayloadBodyV1, 0, request.Count)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user