From c3ed3445f5521dd369490d637c0563cb2b9fd5a1 Mon Sep 17 00:00:00 2001 From: maskpp Date: Wed, 21 May 2025 22:34:48 +0800 Subject: [PATCH] fix bug about using null PayLoadID --- eth/catalyst/simulated_beacon.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eth/catalyst/simulated_beacon.go b/eth/catalyst/simulated_beacon.go index b84df9a4d6..9469577abc 100644 --- a/eth/catalyst/simulated_beacon.go +++ b/eth/catalyst/simulated_beacon.go @@ -208,6 +208,11 @@ func (c *SimulatedBeacon) sealBlock(withdrawals []*types.Withdrawal, timestamp u return errors.New("chain rewind prevented invocation of payload creation") } + // If the payload was already known, we can skip the rest of the process. + if fcResponse.PayloadStatus.Status == engine.VALID && fcResponse.PayloadID == nil { + return nil + } + envelope, err := c.engineAPI.getPayload(*fcResponse.PayloadID, true) if err != nil { return err