Skip to content

Commit

Permalink
Save blob last stage init sync (#12764)
Browse files Browse the repository at this point in the history
Co-authored-by: terence tsao <[email protected]>
  • Loading branch information
kasey and terencechain authored Aug 21, 2023
1 parent 00aaeb9 commit fc45d3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions beacon-chain/sync/initial-sync/round_robin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit fc45d3b

Please sign in to comment.