@@ -488,7 +488,7 @@ func (api *ConsensusAPI) NewPayloadV1(params engine.ExecutableData) (engine.Payl
488
488
// NewPayloadV2 creates an Eth1 block, inserts it in the chain, and returns the status of the chain.
489
489
func (api * ConsensusAPI ) NewPayloadV2 (params engine.ExecutableData ) (engine.PayloadStatusV1 , error ) {
490
490
if api .eth .BlockChain ().Config ().IsCancun (api .eth .BlockChain ().Config ().LondonBlock , params .Timestamp ) {
491
- return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("can't use new payload v2 post-shanghai " ))
491
+ return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("can't use newPayloadV2 post-cancun " ))
492
492
}
493
493
if api .eth .BlockChain ().Config ().LatestFork (params .Timestamp ) == forks .Shanghai {
494
494
if params .Withdrawals == nil {
@@ -503,7 +503,7 @@ func (api *ConsensusAPI) NewPayloadV2(params engine.ExecutableData) (engine.Payl
503
503
return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("non-nil excessBlobGas pre-cancun" ))
504
504
}
505
505
if params .BlobGasUsed != nil {
506
- return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("non-nil params.BlobGasUsed pre-cancun" ))
506
+ return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("non-nil blobGasUsed pre-cancun" ))
507
507
}
508
508
return api .newPayload (params , nil , nil )
509
509
}
@@ -517,14 +517,14 @@ func (api *ConsensusAPI) NewPayloadV3(params engine.ExecutableData, versionedHas
517
517
return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("nil excessBlobGas post-cancun" ))
518
518
}
519
519
if params .BlobGasUsed == nil {
520
- return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("nil params.BlobGasUsed post-cancun" ))
520
+ return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("nil blobGasUsed post-cancun" ))
521
521
}
522
522
523
523
if versionedHashes == nil {
524
524
return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("nil versionedHashes post-cancun" ))
525
525
}
526
526
if beaconRoot == nil {
527
- return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("nil parentBeaconBlockRoot post-cancun" ))
527
+ return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("nil beaconRoot post-cancun" ))
528
528
}
529
529
530
530
if api .eth .BlockChain ().Config ().LatestFork (params .Timestamp ) != forks .Cancun {
0 commit comments