@@ -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 } , engine .UnknownPayload
587
+ return nil , engine .UnknownPayload
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.
@@ -692,7 +686,7 @@ func (api *ConsensusAPI) NewPayloadV4(params engine.ExecutableData, versionedHas
692
686
}
693
687
694
688
// NewPayloadV5 creates an Eth1 block, inserts it in the chain, and returns the status of the chain.
695
- func (api * ConsensusAPI ) NewPayloadV5 (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , executionRequests []hexutil.Bytes , inclusionList * engine. InclusionListV1 ) (engine.PayloadStatusV1 , error ) {
689
+ func (api * ConsensusAPI ) NewPayloadV5 (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , executionRequests []hexutil.Bytes , inclusionList [][] byte ) (engine.PayloadStatusV1 , error ) {
696
690
if params .Withdrawals == nil {
697
691
return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("nil withdrawals post-shanghai" ))
698
692
}
@@ -814,7 +808,7 @@ func (api *ConsensusAPI) NewPayloadWithWitnessV4(params engine.ExecutableData, v
814
808
815
809
// NewPayloadWithWitnessV5 is analogous to NewPayloadV5, only it also generates
816
810
// and returns a stateless witness after running the payload.
817
- func (api * ConsensusAPI ) NewPayloadWithWitnessV5 (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , executionRequests []hexutil.Bytes , inclusionList * engine. InclusionListV1 ) (engine.PayloadStatusV1 , error ) {
811
+ func (api * ConsensusAPI ) NewPayloadWithWitnessV5 (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , executionRequests []hexutil.Bytes , inclusionList [][] byte ) (engine.PayloadStatusV1 , error ) {
818
812
if params .Withdrawals == nil {
819
813
return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("nil withdrawals post-shanghai" ))
820
814
}
@@ -934,7 +928,7 @@ func (api *ConsensusAPI) ExecuteStatelessPayloadV4(params engine.ExecutableData,
934
928
return api .executeStatelessPayload (params , versionedHashes , beaconRoot , requests , opaqueWitness )
935
929
}
936
930
937
- func (api * ConsensusAPI ) newPayload (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , requests [][]byte , inclusionList * engine. InclusionListV1 , witness bool ) (engine.PayloadStatusV1 , error ) {
931
+ func (api * ConsensusAPI ) newPayload (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , requests [][]byte , inclusionList [][] byte , witness bool ) (engine.PayloadStatusV1 , error ) {
938
932
// The locking here is, strictly, not required. Without these locks, this can happen:
939
933
//
940
934
// 1. NewPayload( execdata-N ) is invoked from the CL. It goes all the way down to
0 commit comments