modfied assemble block

This commit is contained in:
Ishika Choudhury
2025-08-18 20:53:33 +05:30
parent e4cd20aa4b
commit a5e42e8d29
3 changed files with 6 additions and 2 deletions

1
Cargo.lock generated
View File

@@ -8421,6 +8421,7 @@ dependencies = [
"alloy-evm",
"alloy-genesis",
"alloy-primitives",
"alloy-rlp",
"alloy-rpc-types-engine",
"derive_more",
"parking_lot",

View File

@@ -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 }

View File

@@ -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(),
},
})
}