File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed
simulators/ethereum/engine/suites/cancun Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -438,6 +438,9 @@ func (step NewPayloads) Execute(t *CancunTestContext) error {
438438 r .ExpectNoError ()
439439 r .ExpectPayloadStatus (expectedStatus )
440440 }
441+ if r .Response .PayloadID != nil {
442+ t .CLMock .AddPayloadID (r .Response .PayloadID )
443+ }
441444 }
442445 },
443446 OnRequestNextPayload : func () {
Original file line number Diff line number Diff line change @@ -714,6 +714,49 @@ var Tests = []test.SpecInterface{
714714 },
715715 },
716716
717+ // ForkchoiceUpdatedV3 with modified BeaconRoot Attribute
718+ & CancunBaseSpec {
719+ Spec : test.Spec {
720+ Name : "ForkchoiceUpdatedV3 Modifies Payload ID on Different Beacon Root" ,
721+ About : `
722+ Test requesting a Cancun Payload using ForkchoiceUpdatedV3 twice with the beacon root
723+ payload attribute as the only change between requests and verify that the payload ID is
724+ different.
725+ ` ,
726+ },
727+
728+ CancunForkHeight : 1 ,
729+
730+ TestSequence : TestSequence {
731+ SendBlobTransactions {
732+ TransactionCount : 1 ,
733+ BlobsPerTransaction : MAX_BLOBS_PER_BLOCK ,
734+ BlobTransactionMaxBlobGasCost : big .NewInt (100 ),
735+ },
736+ NewPayloads {
737+ ExpectedIncludedBlobCount : MAX_BLOBS_PER_BLOCK ,
738+ FcUOnPayloadRequest : & helper.BaseForkchoiceUpdatedCustomizer {
739+ PayloadAttributesCustomizer : & helper.BasePayloadAttributesCustomizer {
740+ BeaconRoot : & (common.Hash {}),
741+ },
742+ },
743+ },
744+ SendBlobTransactions {
745+ TransactionCount : 1 ,
746+ BlobsPerTransaction : MAX_BLOBS_PER_BLOCK ,
747+ BlobTransactionMaxBlobGasCost : big .NewInt (100 ),
748+ },
749+ NewPayloads {
750+ ExpectedIncludedBlobCount : MAX_BLOBS_PER_BLOCK ,
751+ FcUOnPayloadRequest : & helper.BaseForkchoiceUpdatedCustomizer {
752+ PayloadAttributesCustomizer : & helper.BasePayloadAttributesCustomizer {
753+ BeaconRoot : & (common.Hash {1 }),
754+ },
755+ },
756+ },
757+ },
758+ },
759+
717760 // GetPayloadV3 Before Cancun, Negative Tests
718761 & CancunBaseSpec {
719762 Spec : test.Spec {
You can’t perform that action at this time.
0 commit comments