Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Engine API: extend semantics of
executePayload
andforkchoiceUpdated
methods #165Engine API: extend semantics of
executePayload
andforkchoiceUpdated
methods #165Changes from 1 commit
9b5ff91
0324389
e269920
c5a7fb3
56efc7b
3edcc1e
24996ff
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From acd today: this should be made stricter, to not make it implementation-dependent so that clients all lazily choose not to validate any
newPayload
s at allThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think it's more like the following:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As stated, this seems a bit circular because we are a the end of the validation process.
Do we mean instead:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you follow the above suggestion to insert
SYNCING
logic intopayloadValidation
, then you need to update this statement to say:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So errors in the payload assembling process are returned as JSON_RPC errors directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I understand your question correctly. But if an exception occurred during initiating a payload build process then the call of this method must be responded with error.
Generally, this point states that in the case when e.g. a payload is
INVALID
according to EE rules anINVALID
status must be in the response, but if exception happened during the validation then the call must be responded with error, not anINVALID
status.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What should EL return if we receive the wrong timestamp in payload attributes? Because I think
INVALID
is connected to headBlockHash, not payload attributes. By the wrong timestamp, I meanheadBlockHash.Timestamp >= payloadAttributes.Timestamp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would mean that CL is faulty, EL may respond with error in this case. There is
-32602: Invalid params
error that fits well into this case