Skip to content

Introduce ExecutionPayloadParams concept to be able to better compose…#5932

Merged
LukaszRozmej merged 10 commits intofeature/eip-4844-v3-handles-v3-onlyfrom
feature/eip-4844-v3-handles-v3-only-ExecutionPayloadParams
Jul 17, 2023
Merged

Introduce ExecutionPayloadParams concept to be able to better compose…#5932
LukaszRozmej merged 10 commits intofeature/eip-4844-v3-handles-v3-onlyfrom
feature/eip-4844-v3-handles-v3-only-ExecutionPayloadParams

Conversation

@LukaszRozmej
Copy link
Member

@LukaszRozmej LukaszRozmej commented Jul 14, 2023

… and validate complex method signatures

SImplify the code a bit.

Tests are failing but it is problem with tests, need to be fixed in main branch as they might get refactored.

@LukaszRozmej LukaszRozmej requested review from MarekM25 and rubo and removed request for deffrian July 14, 2023 12:00

ResultWrapper<PayloadStatusV1> errorCode = (await rpcModule.engine_newPayloadV1(executionPayload));

Assert.That(errorCode.ErrorCode, Is.EqualTo(ErrorCodes.InvalidParams));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume that we should return InvalidParams still here
So if you pass newPayloadV1 with post-cancun timestamp your validation should fail once checking that BlobVersionedHashes are null and it should give you InvalidParams
UnsupportedFork will be when you pass newPayloadV3 with pre-cancun timestamp

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is to show this error if we have Cancun timestamp in V2 and pre-Cancun timestamp in V3

@LukaszRozmej LukaszRozmej requested review from MarekM25 and flcl42 July 17, 2023 11:49
@LukaszRozmej LukaszRozmej merged commit eac4723 into feature/eip-4844-v3-handles-v3-only Jul 17, 2023
@LukaszRozmej LukaszRozmej deleted the feature/eip-4844-v3-handles-v3-only-ExecutionPayloadParams branch July 17, 2023 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants