eth/catalyst: get params.ExcessBlobGas but check with params.BlobGasUsed (#30267)

Seems it is checked with the wrong argument

Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
Delweng 2024-08-06 01:14:22 +08:00 committed by GitHub
parent 142c94d628
commit 10586952df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -546,7 +546,7 @@ func (api *ConsensusAPI) newPayload(params engine.ExecutableData, versionedHashe
bgu = strconv.Itoa(int(*params.BlobGasUsed)) bgu = strconv.Itoa(int(*params.BlobGasUsed))
} }
ebg := "nil" ebg := "nil"
if params.BlobGasUsed != nil { if params.ExcessBlobGas != nil {
ebg = strconv.Itoa(int(*params.ExcessBlobGas)) ebg = strconv.Itoa(int(*params.ExcessBlobGas))
} }
log.Warn("Invalid NewPayload params", log.Warn("Invalid NewPayload params",