@@ -594,7 +594,7 @@ func (api *ConsensusAPI) NewPayloadV3(params engine.ExecutableData, versionedHas
594
594
595
595
// NewPayloadV4 creates an Eth1 block, inserts it in the chain, and returns the status of the chain.
596
596
// NewPayloadV4 creates an Eth1 block, inserts it in the chain, and returns the status of the chain.
597
- func (api * ConsensusAPI ) NewPayloadV4 (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , requests [][] byte ) (engine.PayloadStatusV1 , error ) {
597
+ func (api * ConsensusAPI ) NewPayloadV4 (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , requests []hexutil. Bytes ) (engine.PayloadStatusV1 , error ) {
598
598
if params .Withdrawals == nil {
599
599
return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("nil withdrawals post-shanghai" ))
600
600
}
@@ -682,7 +682,7 @@ func (api *ConsensusAPI) NewPayloadWithWitnessV3(params engine.ExecutableData, v
682
682
683
683
// NewPayloadWithWitnessV4 is analogous to NewPayloadV4, only it also generates
684
684
// and returns a stateless witness after running the payload.
685
- func (api * ConsensusAPI ) NewPayloadWithWitnessV4 (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , requests [][] byte ) (engine.PayloadStatusV1 , error ) {
685
+ func (api * ConsensusAPI ) NewPayloadWithWitnessV4 (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , requests []hexutil. Bytes ) (engine.PayloadStatusV1 , error ) {
686
686
if params .Withdrawals == nil {
687
687
return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("nil withdrawals post-shanghai" ))
688
688
}
@@ -770,7 +770,7 @@ func (api *ConsensusAPI) ExecuteStatelessPayloadV3(params engine.ExecutableData,
770
770
771
771
// ExecuteStatelessPayloadV4 is analogous to NewPayloadV4, only it operates in
772
772
// a stateless mode on top of a provided witness instead of the local database.
773
- func (api * ConsensusAPI ) ExecuteStatelessPayloadV4 (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , requests [][] byte , opaqueWitness hexutil.Bytes ) (engine.StatelessPayloadStatusV1 , error ) {
773
+ func (api * ConsensusAPI ) ExecuteStatelessPayloadV4 (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , requests []hexutil. Bytes , opaqueWitness hexutil.Bytes ) (engine.StatelessPayloadStatusV1 , error ) {
774
774
if params .Withdrawals == nil {
775
775
return engine.StatelessPayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("nil withdrawals post-shanghai" ))
776
776
}
@@ -797,7 +797,7 @@ func (api *ConsensusAPI) ExecuteStatelessPayloadV4(params engine.ExecutableData,
797
797
return api .executeStatelessPayload (params , versionedHashes , beaconRoot , requests , opaqueWitness )
798
798
}
799
799
800
- func (api * ConsensusAPI ) newPayload (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , requests [][] byte , witness bool ) (engine.PayloadStatusV1 , error ) {
800
+ func (api * ConsensusAPI ) newPayload (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , requests []hexutil. Bytes , witness bool ) (engine.PayloadStatusV1 , error ) {
801
801
// The locking here is, strictly, not required. Without these locks, this can happen:
802
802
//
803
803
// 1. NewPayload( execdata-N ) is invoked from the CL. It goes all the way down to
@@ -927,7 +927,7 @@ func (api *ConsensusAPI) newPayload(params engine.ExecutableData, versionedHashe
927
927
return engine.PayloadStatusV1 {Status : engine .VALID , Witness : ow , LatestValidHash : & hash }, nil
928
928
}
929
929
930
- func (api * ConsensusAPI ) executeStatelessPayload (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , requests [][] byte , opaqueWitness hexutil.Bytes ) (engine.StatelessPayloadStatusV1 , error ) {
930
+ func (api * ConsensusAPI ) executeStatelessPayload (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , requests []hexutil. Bytes , opaqueWitness hexutil.Bytes ) (engine.StatelessPayloadStatusV1 , error ) {
931
931
log .Trace ("Engine API request received" , "method" , "ExecuteStatelessPayload" , "number" , params .Number , "hash" , params .BlockHash )
932
932
933
933
block , err := engine .ExecutableDataToBlockNoHash (params , versionedHashes , beaconRoot , requests )
0 commit comments