@@ -553,7 +553,7 @@ func (api *ConsensusAPI) GetBlobsV1(hashes []common.Hash) ([]*engine.BlobAndProo
553
553
return res , nil
554
554
}
555
555
556
- func (api * ConsensusAPI ) GetInclusionListV1 (parentHash common.Hash ) (* engine. InclusionListV1 , error ) {
556
+ func (api * ConsensusAPI ) GetInclusionListV1 (parentHash common.Hash ) ([][] byte , error ) {
557
557
if inclusionList := api .localInclusionLists .get (parentHash ); inclusionList != nil {
558
558
return inclusionList , nil
559
559
}
@@ -572,26 +572,20 @@ func (api *ConsensusAPI) GetInclusionListV1(parentHash common.Hash) (*engine.Inc
572
572
return inclusionList , nil
573
573
}
574
574
575
- func (api * ConsensusAPI ) UpdatePayloadWithInclusionListV1 (payloadID engine.PayloadID , inclusionList engine.InclusionListV1 ) (engine.UpdateInclusionListResponse , error ) {
576
- response := func (id * engine.PayloadID ) engine.UpdateInclusionListResponse {
577
- return engine.UpdateInclusionListResponse {
578
- PayloadID : id ,
579
- }
580
- }
581
-
575
+ func (api * ConsensusAPI ) UpdatePayloadWithInclusionListV1 (payloadID engine.PayloadID , inclusionList [][]byte ) (* engine.PayloadID , error ) {
582
576
payload := api .localBlocks .peak (payloadID )
583
577
if payload == nil {
584
- return engine. UpdateInclusionListResponse { PayloadID : nil } , engine .UnknownPayload
578
+ return nil , engine .UnknownPayload
585
579
}
586
580
587
- inclusionListTxs , err := engine .InclusionListToTransactions (& inclusionList )
581
+ inclusionListTxs , err := engine .InclusionListToTransactions (inclusionList )
588
582
if err != nil {
589
- return engine. UpdateInclusionListResponse { PayloadID : nil } , err
583
+ return nil , err
590
584
}
591
585
592
586
payload .UpdateWithInclusionList (inclusionListTxs )
593
587
594
- return response ( & payloadID ) , nil
588
+ return & payloadID , nil
595
589
}
596
590
597
591
// NewPayloadV1 creates an Eth1 block, inserts it in the chain, and returns the status of the chain.
@@ -683,7 +677,7 @@ func (api *ConsensusAPI) NewPayloadV4(params engine.ExecutableData, versionedHas
683
677
}
684
678
685
679
// NewPayloadV5 creates an Eth1 block, inserts it in the chain, and returns the status of the chain.
686
- func (api * ConsensusAPI ) NewPayloadV5 (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , executionRequests []hexutil.Bytes , inclusionList * engine. InclusionListV1 ) (engine.PayloadStatusV1 , error ) {
680
+ func (api * ConsensusAPI ) NewPayloadV5 (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , executionRequests []hexutil.Bytes , inclusionList [][] byte ) (engine.PayloadStatusV1 , error ) {
687
681
if params .Withdrawals == nil {
688
682
return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("nil withdrawals post-shanghai" ))
689
683
}
@@ -805,7 +799,7 @@ func (api *ConsensusAPI) NewPayloadWithWitnessV4(params engine.ExecutableData, v
805
799
806
800
// NewPayloadWithWitnessV5 is analogous to NewPayloadV5, only it also generates
807
801
// and returns a stateless witness after running the payload.
808
- func (api * ConsensusAPI ) NewPayloadWithWitnessV5 (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , executionRequests []hexutil.Bytes , inclusionList * engine. InclusionListV1 ) (engine.PayloadStatusV1 , error ) {
802
+ func (api * ConsensusAPI ) NewPayloadWithWitnessV5 (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , executionRequests []hexutil.Bytes , inclusionList [][] byte ) (engine.PayloadStatusV1 , error ) {
809
803
if params .Withdrawals == nil {
810
804
return engine.PayloadStatusV1 {Status : engine .INVALID }, engine .InvalidParams .With (errors .New ("nil withdrawals post-shanghai" ))
811
805
}
@@ -925,7 +919,7 @@ func (api *ConsensusAPI) ExecuteStatelessPayloadV4(params engine.ExecutableData,
925
919
return api .executeStatelessPayload (params , versionedHashes , beaconRoot , requests , opaqueWitness )
926
920
}
927
921
928
- func (api * ConsensusAPI ) newPayload (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , requests [][]byte , inclusionList * engine. InclusionListV1 , witness bool ) (engine.PayloadStatusV1 , error ) {
922
+ func (api * ConsensusAPI ) newPayload (params engine.ExecutableData , versionedHashes []common.Hash , beaconRoot * common.Hash , requests [][]byte , inclusionList [][] byte , witness bool ) (engine.PayloadStatusV1 , error ) {
929
923
// The locking here is, strictly, not required. Without these locks, this can happen:
930
924
//
931
925
// 1. NewPayload( execdata-N ) is invoked from the CL. It goes all the way down to
0 commit comments