From b8eaf78b174151fd98b0d1cc48796c33cefa5ee9 Mon Sep 17 00:00:00 2001 From: Andrew Ashikhmin <34320705+yperbasis@users.noreply.github.com> Date: Tue, 28 Mar 2023 17:27:14 +0200 Subject: [PATCH] Release transaction in EngineGetPayloadBodiesByRangeV1 (and by hash) (#7199) Should hopefully help with Issue #7172 --- ethdb/privateapi/ethbackend.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ethdb/privateapi/ethbackend.go b/ethdb/privateapi/ethbackend.go index 1f9ae3c7c11..ded53ba96b2 100644 --- a/ethdb/privateapi/ethbackend.go +++ b/ethdb/privateapi/ethbackend.go @@ -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)