Do not send FCU on block batches (#16199)

On block batches the engine does not need to be notified of FCU, only on
regular sync at the end of sync it's useful to notify the engine.
This commit is contained in:
Potuz
2025-12-29 08:39:12 -03:00
committed by GitHub
parent d46c620783
commit 2767f08f4d
2 changed files with 2 additions and 8 deletions

View File

@@ -295,14 +295,6 @@ func (s *Service) onBlockBatch(ctx context.Context, blks []consensusblocks.ROBlo
return errors.Wrap(err, "could not set optimistic block to valid")
}
}
arg := &fcuConfig{
headState: preState,
headRoot: lastBR,
headBlock: lastB,
}
if _, err := s.notifyForkchoiceUpdate(ctx, arg); err != nil {
return err
}
return s.saveHeadNoDB(ctx, lastB, lastBR, preState, !isValidPayload)
}

View File

@@ -0,0 +1,2 @@
### Ignored
- D not send FCU on block batches.