Skip to content

Commit

Permalink
Merge pull request #3382 from ethereum/quick-patches
Browse files Browse the repository at this point in the history
a couple of minor cleanups
  • Loading branch information
hwwhww authored May 24, 2023
2 parents 2fef00e + 9bc27ba commit c66ccfa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion specs/deneb/beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def process_execution_payload(state: BeaconState, body: BeaconBlockBody, executi
assert len(body.blob_kzg_commitments) <= MAX_BLOBS_PER_BLOCK

# Verify the execution payload is valid
# [Modified in Deneb] Pass `versioned_hashes` to Engine API
# [Modified in Deneb] Pass `versioned_hashes` to Execution Engine
versioned_hashes = [kzg_commitment_to_versioned_hash(commitment) for commitment in body.blob_kzg_commitments]
assert execution_engine.verify_and_notify_new_payload(
NewPayloadRequest(execution_payload=payload, versioned_hashes=versioned_hashes)
Expand Down
2 changes: 0 additions & 2 deletions tests/core/pyspec/eth2spec/test/deneb/sanity/test_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ def run_block_with_blobs(spec, state, blob_count, excess_data_gas=1, valid=True)
block.body.execution_payload.excess_data_gas = excess_data_gas
block.body.execution_payload.block_hash = compute_el_block_hash(spec, block.body.execution_payload)

print(len(block.body.blob_kzg_commitments))

if valid:
signed_block = state_transition_and_sign_block(spec, state, block)
else:
Expand Down

0 comments on commit c66ccfa

Please sign in to comment.