stop emitting payload attribute events during late block handling (#16026)

* stop emitting payload attribute events during late block handling when we are not proposing the next slot

* Change the behavior to not even enter FCU if we are not proposing next slot
This commit is contained in:
terence
2025-11-19 11:51:46 -05:00
committed by GitHub
parent bc0868e232
commit eb9feabd6f
2 changed files with 3 additions and 7 deletions

View File

@@ -948,13 +948,6 @@ func (s *Service) lateBlockTasks(ctx context.Context) {
attribute := s.getPayloadAttribute(ctx, headState, s.CurrentSlot()+1, headRoot[:])
// return early if we are not proposing next slot
if attribute.IsEmpty() {
headBlock, err := s.headBlock()
if err != nil {
log.WithError(err).WithField("head_root", headRoot).Error("Unable to retrieve head block to fire payload attributes event")
}
// notifyForkchoiceUpdate fires the payload attribute event. But in this case, we won't
// call notifyForkchoiceUpdate, so the event is fired here.
go s.firePayloadAttributesEvent(s.cfg.StateNotifier.StateFeed(), headBlock, headRoot, s.CurrentSlot()+1)
return
}

View File

@@ -0,0 +1,3 @@
### Changed
- Stop emitting payload attribute events during late block handling when we are not proposing the next slot