Fix payload attribute proposer calculation (#15228)

Process slots if epoch is greater than head state epoch
This commit is contained in:
terence
2025-04-27 10:52:09 -07:00
committed by GitHub
parent efaf6649e7
commit 28cd59c9b7
2 changed files with 4 additions and 1 deletions

View File

@@ -711,7 +711,7 @@ func (s *Server) fillEventData(ctx context.Context, ev payloadattribute.EventDat
return ev, errors.Wrap(err, "could not get head state")
}
// double check that we need to process_slots, just in case we got here via a hot state cache miss.
if slots.ToEpoch(st.Slot()) == pse {
if slots.ToEpoch(st.Slot()) < pse {
start, err := slots.EpochStart(pse)
if err != nil {
return ev, errors.Wrap(err, "invalid state slot; could not compute epoch start")

3
changelog/tt_ramen.md Normal file
View File

@@ -0,0 +1,3 @@
### Fixed
- Process slots across epoch for payload attribute event.