Update eth/catalyst/simulated_beacon.go

This commit is contained in:
Marius van der Wijden 2025-06-04 10:03:26 +02:00 committed by GitHub
parent c3ed3445f5
commit 1223244b3e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -209,6 +209,7 @@ func (c *SimulatedBeacon) sealBlock(withdrawals []*types.Withdrawal, timestamp u
} }
// If the payload was already known, we can skip the rest of the process. // If the payload was already known, we can skip the rest of the process.
// This edge case is possible due to a race condition between seal and debug.setHead.
if fcResponse.PayloadStatus.Status == engine.VALID && fcResponse.PayloadID == nil { if fcResponse.PayloadStatus.Status == engine.VALID && fcResponse.PayloadID == nil {
return nil return nil
} }