From e166e5d765b0aaf588b0140cbc7a996e4e69fcdf Mon Sep 17 00:00:00 2001 From: kasey <489222+kasey@users.noreply.github.com> Date: Mon, 21 Aug 2023 13:27:46 -0500 Subject: [PATCH] Save blob last stage init sync (#12764) Co-authored-by: terence tsao --- beacon-chain/sync/initial-sync/round_robin.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/beacon-chain/sync/initial-sync/round_robin.go b/beacon-chain/sync/initial-sync/round_robin.go index b9c0b32c2f07..89df36b2e9e2 100644 --- a/beacon-chain/sync/initial-sync/round_robin.go +++ b/beacon-chain/sync/initial-sync/round_robin.go @@ -162,6 +162,10 @@ func (s *Service) processFetchedDataRegSync( invalidBlocks := 0 blksWithoutParentCount := 0 for _, b := range data.bwb { + if err := s.cfg.DB.SaveBlobSidecar(ctx, b.Blobs); err != nil { + log.WithError(err).Warn("Failed to save blob sidecar") + } + if err := s.processBlock(ctx, genesis, b, blockReceiver); err != nil { switch { case errors.Is(err, errBlockAlreadyProcessed):