mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 21:08:10 -05:00
Currently the payload attribute events is triggered on `forkchoiceUpodateWithExecution`. However when we import an early block, we do not call this function, we make two calls to FCU, the first one is on a locked path at the end of `postBlockProcess` and this call is made without any payload attributes to avoid updating the shuffling caches. The second call is made on `handleSecondFCUCall` which calls directly `notifyForkchoiceUpdate` bypassing the call to `forkchoiceUpdateWithExecution`, but this call is the one that actually computes the payload attributes. So the event handler is never called with the new attributes. This PR moves the event trigger to the same place where we actually call FCU with the computed payload attributes. Some considerations with forkchoice locking logic: since the calls are always in a go routine, anyway the routine will wait to forkchoice to be unlocked to proceed. Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
85 B
85 B
Fixed
- Trigger payload attribute event as soon as an early block is processed.