Apply suggestions from code review

Co-authored-by: Jonny Rhea <5555162+jrhea@users.noreply.github.com>
This commit is contained in:
Marius van der Wijden 2026-01-13 09:19:13 +01:00 committed by Jared Wasinger
parent fd1f9cf0dd
commit cb8dd58448
2 changed files with 3 additions and 3 deletions

View file

@ -52,10 +52,10 @@ var (
// fields: blobGasUsed and excessBlobGas. // fields: blobGasUsed and excessBlobGas.
PayloadV3 PayloadVersion = 0x3 PayloadV3 PayloadVersion = 0x3
// PayloadV4 is the identifier of ExecutionPayloadV3 introduced in amsterdam fork. // PayloadV4 is the identifier of ExecutionPayloadV4 introduced in amsterdam fork.
// //
// https://github.com/ethereum/execution-apis/blob/main/src/engine/amsterdam.md#executionpayloadv4 // https://github.com/ethereum/execution-apis/blob/main/src/engine/amsterdam.md#executionpayloadv4
// ExecutionPayloadV3 has the syntax of ExecutionPayloadV3 and appends the new // ExecutionPayloadV4 has the syntax of ExecutionPayloadV3 and appends the new
// field slotNumber. // field slotNumber.
PayloadV4 PayloadVersion = 0x4 PayloadV4 PayloadVersion = 0x4
) )

View file

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