Skip to content

Commit

Permalink
Caplin: Fixed not calling FCU due to faulty blob handling (#9818)
Browse files Browse the repository at this point in the history
Cherry pick PR #9779 into the release

Co-authored-by: Giulio rebuffo <giulio.rebuffo@gmail.com>
  • Loading branch information
yperbasis and Giulio2002 authored Mar 27, 2024
1 parent 0f0a445 commit 270d557
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions cl/phase1/stages/clstages.go
Original file line number Diff line number Diff line change
Expand Up @@ -564,14 +564,23 @@ func ConsensusClStages(ctx context.Context,
errCh <- err
return
}
blobs, err := network2.RequestBlobsFrantically(ctx, cfg.rpc, ids)
if err != nil {
errCh <- err
return
}
if _, _, err = blob_storage.VerifyAgainstIdentifiersAndInsertIntoTheBlobStore(ctx, cfg.blobStore, ids, blobs.Responses, forkchoice.VerifyHeaderSignatureAgainstForkChoiceStoreFunction(cfg.forkChoice, cfg.beaconCfg, cfg.genesisCfg.GenesisValidatorRoot)); err != nil {
errCh <- err
return
var inserted uint64

for inserted != uint64(ids.Len()) {
select {
case <-ctx.Done():
return
default:
}
blobs, err := network2.RequestBlobsFrantically(ctx, cfg.rpc, ids)
if err != nil {
errCh <- err
return
}
if _, inserted, err = blob_storage.VerifyAgainstIdentifiersAndInsertIntoTheBlobStore(ctx, cfg.blobStore, ids, blobs.Responses, forkchoice.VerifyHeaderSignatureAgainstForkChoiceStoreFunction(cfg.forkChoice, cfg.beaconCfg, cfg.genesisCfg.GenesisValidatorRoot)); err != nil {
errCh <- err
return
}
}

select {
Expand Down

0 comments on commit 270d557

Please sign in to comment.