From b26afa892beeeec111283a619a4eef4a93d95cbc Mon Sep 17 00:00:00 2001 From: aBear Date: Mon, 11 Nov 2024 13:46:30 +0100 Subject: [PATCH] simplified waiting for sidecar availability --- mod/beacon/blockchain/process.go | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/mod/beacon/blockchain/process.go b/mod/beacon/blockchain/process.go index 2e4f992865..dac453b816 100644 --- a/mod/beacon/blockchain/process.go +++ b/mod/beacon/blockchain/process.go @@ -26,7 +26,6 @@ import ( "github.com/berachain/beacon-kit/mod/primitives/pkg/async" "github.com/berachain/beacon-kit/mod/primitives/pkg/transition" - "golang.org/x/sync/errgroup" ) // ProcessGenesisData processes the genesis state and initializes the beacon @@ -66,16 +65,7 @@ func (s *Service[ return nil, err } - // To complete block finalization, we wait for the associated blob - // to be persisted and verify it's available. Once that is done we - // complete block finalization. - g, gCtx := errgroup.WithContext(ctx) - g.Go(func() error { - return s.verifyFinalBlobAvailability(gCtx, beaconBlk) - }) - - // Wait for the sidecar to be finalized and its availability checked - if err = g.Wait(); err != nil { + if err = s.verifyFinalBlobAvailability(ctx, beaconBlk); err != nil { return nil, err }