Skip to content

proper EL block hash implementation in tests#3126

Merged
hwwhww merged 7 commits intoethereum:devfrom
etan-status:el-rlp
Dec 13, 2022
Merged

proper EL block hash implementation in tests#3126
hwwhww merged 7 commits intoethereum:devfrom
etan-status:el-rlp

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
Contributor

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))

@hwwhww hwwhww added the testing CI, actions, tests, testing infra label Dec 13, 2022
Co-authored-by: Hsiao-Wei Wang <[email protected]>
@hwwhww hwwhww merged commit e9a7a6d into ethereum:dev Dec 13, 2022
@etan-status etan-status deleted the el-rlp branch December 13, 2022 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing CI, actions, tests, testing infra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants