From 9bc27bad306c5b5be7c6e3381c8a01e10232bd91 Mon Sep 17 00:00:00 2001 From: djrtwo Date: Wed, 24 May 2023 05:41:42 -0600 Subject: [PATCH] a couple of minor cleanups --- specs/deneb/beacon-chain.md | 2 +- tests/core/pyspec/eth2spec/test/deneb/sanity/test_blocks.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/specs/deneb/beacon-chain.md b/specs/deneb/beacon-chain.md index cd02d2494..e1690c062 100644 --- a/specs/deneb/beacon-chain.md +++ b/specs/deneb/beacon-chain.md @@ -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) diff --git a/tests/core/pyspec/eth2spec/test/deneb/sanity/test_blocks.py b/tests/core/pyspec/eth2spec/test/deneb/sanity/test_blocks.py index 13a042b9f..ba0797a04 100644 --- a/tests/core/pyspec/eth2spec/test/deneb/sanity/test_blocks.py +++ b/tests/core/pyspec/eth2spec/test/deneb/sanity/test_blocks.py @@ -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: