-
Notifications
You must be signed in to change notification settings - Fork 107
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_forkchoiceUpdatedV1
/V2
/V3
incorrectly only check for correct engine API call version when payload attributes present
#2273
Comments
Both of the above calls implicitly validate the timestamp of the related block inside their block validation routine. |
Line 195 is also within the payload attributes-only section of the function: nimbus-eth1/nimbus/beacon/api_handler/api_forkchoice.nim Lines 188 to 197 in cfbbcda
so it doesn't address the no-payload-attributes case. I don't see how
This would typically indicate, of course, a CL bug, but the engine API behavior per se is not incorrect. Invalid engine API behavior which would look identical to
(or any other non-matching How can |
It does these checks in
validateVersion
, but this is only called whenattrsOpt.isSome
:nimbus-eth1/nimbus/beacon/api_handler/api_forkchoice.nim
Lines 188 to 193 in bda760f
whereas https://github.com/ethereum/execution-apis/blob/v1.0.0-beta.4/src/engine/shanghai.md#specification-1 requires:
There's no check for the
headBlockHash
blocktimestamp
mismatching the fork case.The text was updated successfully, but these errors were encountered: