mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-19 14:29:27 +00:00
Apply suggestions from code review
Co-authored-by: Jonny Rhea <5555162+jrhea@users.noreply.github.com>
This commit is contained in:
parent
fd1f9cf0dd
commit
cb8dd58448
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue