-
Notifications
You must be signed in to change notification settings - Fork 996
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
proper EL block hash implementation in tests #3126
Conversation
Replaces the "FAKE RLP HASH" in `ExecutionPayload.block_hash` of all generated tests with the correct value.
Looks great! 👍 As a further refactor (and probably in a separate PR) it does make sense to implement |
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.
great work! 👍
if is_post_capella(spec): | ||
# withdrawals_root | ||
execution_payload_header_rlp.append((Binary(32, 32), withdrawals_trie_root)) | ||
|
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.
Need to add eip4844 excess_data_gas
field.
if is_post_eip4844(spec):
# excess_data_gas
execution_payload_header_rlp.append((big_endian_int, payload_header.excess_data_gas))
Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
Replaces the "FAKE RLP HASH" in
ExecutionPayload.block_hash
of all generated tests with the correct value.