Skip to content
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

Merged
merged 7 commits into from
Dec 13, 2022
Merged

Conversation

etan-status
Copy link
Contributor

Replaces the "FAKE RLP HASH" in ExecutionPayload.block_hash of all generated tests with the correct value.

Replaces the "FAKE RLP HASH" in `ExecutionPayload.block_hash` of all
generated tests with the correct value.
@mkalinin
Copy link
Collaborator

Looks great! 👍 As a further refactor (and probably in a separate PR) it does make sense to implement build_execution_payload function parametrised with parent_hash, prev_randao which will also include block_hash computation at the end.

Copy link
Contributor

@hwwhww hwwhww left a comment

Choose a reason for hiding this comment

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

great work! 👍

Comment on lines 86 to 89
if is_post_capella(spec):
# withdrawals_root
execution_payload_header_rlp.append((Binary(32, 32), withdrawals_trie_root))

Copy link
Contributor

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants