@@ -562,7 +562,7 @@ func (api *ConsensusAPI) GetBlobsV1(hashes []common.Hash) ([]*engine.BlobAndProo
562
562
return res , nil
563
563
}
564
564
565
- func (api * ConsensusAPI ) GetInclusionListV1 (parentHash common.Hash ) (* engine. InclusionListV1 , error ) {
565
+ func (api * ConsensusAPI ) GetInclusionListV1 (parentHash common.Hash ) ([][] byte , error ) {
566
566
if inclusionList := api .localInclusionLists .get (parentHash ); inclusionList != nil {
567
567
return inclusionList , nil
568
568
}
@@ -581,26 +581,20 @@ func (api *ConsensusAPI) GetInclusionListV1(parentHash common.Hash) (*engine.Inc
581
581
return inclusionList , nil
582
582
}
583
583
584
- func (api * ConsensusAPI ) UpdatePayloadWithInclusionListV1 (payloadID engine.PayloadID , inclusionList engine.InclusionListV1 ) (engine.UpdateInclusionListResponse , error ) {
585
- response := func (id * engine.PayloadID ) engine.UpdateInclusionListResponse {
586
- return engine.UpdateInclusionListResponse {
587
- PayloadID : id ,
588
- }
589
- }
590
-
584
+ func (api * ConsensusAPI ) UpdatePayloadWithInclusionListV1 (payloadID engine.PayloadID , inclusionList [][]byte ) (* engine.PayloadID , error ) {
591
585
payload := api .localBlocks .peak (payloadID )
592
586
if payload == nil {
593
- return engine. UpdateInclusionListResponse { PayloadID : nil } , nil
587
+ return nil , nil
594
588
}
595
589
596
- inclusionListTxs , err := engine .InclusionListToTransactions (& inclusionList )
590
+ inclusionListTxs , err := engine .InclusionListToTransactions (inclusionList )
597
591
if err != nil {
598
- return engine. UpdateInclusionListResponse { PayloadID : nil } , err
592
+ return nil , err
599
593
}
600
594
601
595
payload .UpdateWithInclusionList (inclusionListTxs )
602
596
603
- return response ( & payloadID ) , nil
597
+ return & payloadID , nil
604
598
}
605
599
606
600
// NewPayloadV1 creates an Eth1 block, inserts it in the chain, and returns the status of the chain.
@@ -689,7 +683,7 @@ func (api *ConsensusAPI) NewPayloadV4(params engine.ExecutableData, versionedHas
689
683
}
690
684
691
685
// NewPayloadV5 creates an Eth1 block, inserts it in the chain, and returns the status of the chain.
692
- func (api * ConsensusAPI ) NewPayloadV5 (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , executionRequests []hexutil.Bytes , inclusionList * engine. InclusionListV1 ) (engine.PayloadStatusV1 , error ) {
686
+ func (api * ConsensusAPI ) NewPayloadV5 (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , executionRequests []hexutil.Bytes , inclusionList [][] byte ) (engine.PayloadStatusV1 , error ) {
693
687
if params .Withdrawals == nil {
694
688
return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("nil withdrawals post-shanghai" ))
695
689
}
@@ -808,7 +802,7 @@ func (api *ConsensusAPI) NewPayloadWithWitnessV4(params engine.ExecutableData, v
808
802
809
803
// NewPayloadWithWitnessV5 is analogous to NewPayloadV5, only it also generates
810
804
// and returns a stateless witness after running the payload.
811
- func (api * ConsensusAPI ) NewPayloadWithWitnessV5 (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , executionRequests []hexutil.Bytes , inclusionList * engine. InclusionListV1 ) (engine.PayloadStatusV1 , error ) {
805
+ func (api * ConsensusAPI ) NewPayloadWithWitnessV5 (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , executionRequests []hexutil.Bytes , inclusionList [][] byte ) (engine.PayloadStatusV1 , error ) {
812
806
if params .Withdrawals == nil {
813
807
return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("nil withdrawals post-shanghai" ))
814
808
}
@@ -928,7 +922,7 @@ func (api *ConsensusAPI) ExecuteStatelessPayloadV4(params engine.ExecutableData,
928
922
return api .executeStatelessPayload (params , versionedHashes , beaconRoot , requests , opaqueWitness )
929
923
}
930
924
931
- func (api * ConsensusAPI ) newPayload (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , requests [][]byte , inclusionList * engine. InclusionListV1 , witness bool ) (engine.PayloadStatusV1 , error ) {
925
+ func (api * ConsensusAPI ) newPayload (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , requests [][]byte , inclusionList [][] byte , witness bool ) (engine.PayloadStatusV1 , error ) {
932
926
// The locking here is, strictly, not required. Without these locks, this can happen:
933
927
//
934
928
// 1. NewPayload( execdata-N ) is invoked from the CL. It goes all the way down to
0 commit comments