@@ -489,7 +489,7 @@ func (api *ConsensusAPI) NewPayloadV1(params engine.ExecutableData) (engine.Payl
489489func (api * ConsensusAPI ) NewPayloadV2 (params engine.ExecutableData ) (engine.PayloadStatusV1 , error ) {
490490 arbosVersion := types .DeserializeHeaderExtraInformation (api .eth .BlockChain ().CurrentHeader ()).ArbOSFormatVersion
491491 if api .eth .BlockChain ().Config ().IsCancun (api .eth .BlockChain ().Config ().LondonBlock , params .Timestamp , arbosVersion ) {
492- return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("can't use new payload v2 post-shanghai " ))
492+ return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("can't use newPayloadV2 post-cancun " ))
493493 }
494494 if api .eth .BlockChain ().Config ().LatestFork (params .Timestamp , arbosVersion ) == forks .Shanghai {
495495 if params .Withdrawals == nil {
@@ -504,7 +504,7 @@ func (api *ConsensusAPI) NewPayloadV2(params engine.ExecutableData) (engine.Payl
504504 return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("non-nil excessBlobGas pre-cancun" ))
505505 }
506506 if params .BlobGasUsed != nil {
507- return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("non-nil params.BlobGasUsed pre-cancun" ))
507+ return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("non-nil blobGasUsed pre-cancun" ))
508508 }
509509 return api .newPayload (params , nil , nil )
510510}
@@ -519,14 +519,14 @@ func (api *ConsensusAPI) NewPayloadV3(params engine.ExecutableData, versionedHas
519519 return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("nil excessBlobGas post-cancun" ))
520520 }
521521 if params .BlobGasUsed == nil {
522- return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("nil params.BlobGasUsed post-cancun" ))
522+ return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("nil blobGasUsed post-cancun" ))
523523 }
524524
525525 if versionedHashes == nil {
526526 return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("nil versionedHashes post-cancun" ))
527527 }
528528 if beaconRoot == nil {
529- return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("nil parentBeaconBlockRoot post-cancun" ))
529+ return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("nil beaconRoot post-cancun" ))
530530 }
531531
532532 if api .eth .BlockChain ().Config ().LatestFork (params .Timestamp , arbosVersion ) != forks .Cancun {
@@ -881,8 +881,7 @@ func getBody(block *types.Block) *engine.ExecutionPayloadBodyV1 {
881881 )
882882
883883 for j , tx := range body .Transactions {
884- data , _ := tx .MarshalBinary ()
885- txs [j ] = hexutil .Bytes (data )
884+ txs [j ], _ = tx .MarshalBinary ()
886885 }
887886
888887 // Post-shanghai withdrawals MUST be set to empty slice instead of nil
0 commit comments