-
Notifications
You must be signed in to change notification settings - Fork 21.5k
eth/catalyst: update implementation to spec #24802
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
Changes from all commits
5e7cc00
d21bcdc
0cd1cf3
d53bef2
f165626
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,9 +43,10 @@ var ( | |
|
|
||
| INVALIDBLOCKHASH = "INVALID_BLOCK_HASH" | ||
|
|
||
| GenericServerError = rpc.CustomError{Code: -32000, ValidationError: "Server error"} | ||
| UnknownPayload = rpc.CustomError{Code: -32001, ValidationError: "Unknown payload"} | ||
| InvalidTB = rpc.CustomError{Code: -32002, ValidationError: "Invalid terminal block"} | ||
| GenericServerError = rpc.CustomError{Code: -32000, ValidationError: "Server error"} | ||
| UnknownPayload = rpc.CustomError{Code: -38001, ValidationError: "Unknown payload"} | ||
| InvalidForkChoiceState = rpc.CustomError{Code: -38002, ValidationError: "Invalid forkchoice state"} | ||
| InvalidPayloadAttributes = rpc.CustomError{Code: -38003, ValidationError: "Invalid payload attributes"} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This feels like a bad change FWIW. The code is already there to "group" the error into There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't we keep the code but use Geth's own errors as the validation error field? Or can't we add a second error reason field to pass it from Geth? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Spec says we can add a data field https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md#errors, we should do that and keep Geth's errors throughout. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| STATUS_INVALID = ForkChoiceResponse{PayloadStatus: PayloadStatusV1{Status: INVALID}, PayloadID: nil} | ||
| STATUS_SYNCING = ForkChoiceResponse{PayloadStatus: PayloadStatusV1{Status: SYNCING}, PayloadID: nil} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.