From a5e42e8d29d9d7a174de5fde6ac66e4860198c1d Mon Sep 17 00:00:00 2001 From: Ishika Choudhury <117741714+Rimeeeeee@users.noreply.github.com> Date: Mon, 18 Aug 2025 20:53:33 +0530 Subject: [PATCH] modfied assemble block --- Cargo.lock | 1 + crates/ethereum/evm/Cargo.toml | 1 + crates/ethereum/evm/src/build.rs | 6 ++++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7a2f799f3f..a5aab0d41e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8421,6 +8421,7 @@ dependencies = [ "alloy-evm", "alloy-genesis", "alloy-primitives", + "alloy-rlp", "alloy-rpc-types-engine", "derive_more", "parking_lot", diff --git a/crates/ethereum/evm/Cargo.toml b/crates/ethereum/evm/Cargo.toml index fbbbeeed83..7de672d915 100644 --- a/crates/ethereum/evm/Cargo.toml +++ b/crates/ethereum/evm/Cargo.toml @@ -27,6 +27,7 @@ alloy-eips.workspace = true alloy-evm.workspace = true alloy-consensus.workspace = true alloy-rpc-types-engine.workspace = true +alloy-rlp.workspace = true # Misc parking_lot = { workspace = true, optional = true } diff --git a/crates/ethereum/evm/src/build.rs b/crates/ethereum/evm/src/build.rs index 8a5f609176..61dca9b3a8 100644 --- a/crates/ethereum/evm/src/build.rs +++ b/crates/ethereum/evm/src/build.rs @@ -110,7 +110,9 @@ where blob_gas_used, excess_blob_gas, requests_hash, - block_access_list_hash: None, + block_access_list_hash: block_access_list + .as_ref() + .map(|bal| alloy_primitives::keccak256(&alloy_rlp::encode(bal))), }; Ok(Block { @@ -119,7 +121,7 @@ where transactions, ommers: Default::default(), withdrawals, - block_access_list: None, + block_access_list: block_access_list.clone(), }, }) }