From 2354493fd631b736c189868b7dc1b415a160f0f7 Mon Sep 17 00:00:00 2001 From: Jimmy Chen Date: Mon, 14 Aug 2023 23:59:01 +1000 Subject: [PATCH] Rename `data_gas` to `blob_gas` --- ethereum-consensus/src/deneb/execution.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ethereum-consensus/src/deneb/execution.rs b/ethereum-consensus/src/deneb/execution.rs index b15c791f3..1dfb1273a 100644 --- a/ethereum-consensus/src/deneb/execution.rs +++ b/ethereum-consensus/src/deneb/execution.rs @@ -36,9 +36,9 @@ pub struct ExecutionPayload< pub transactions: List, MAX_TRANSACTIONS_PER_PAYLOAD>, pub withdrawals: List, #[serde(with = "crate::serde::as_string")] - pub data_gas_used: u64, + pub blob_gas_used: u64, #[serde(with = "crate::serde::as_string")] - pub excess_data_gas: u64, + pub excess_blob_gas: u64, } #[derive(Default, Debug, Clone, SimpleSerialize, PartialEq, Eq)] @@ -67,9 +67,9 @@ pub struct ExecutionPayloadHeader< pub transactions_root: Root, pub withdrawals_root: Root, #[serde(with = "crate::serde::as_string")] - pub data_gas_used: u64, + pub blob_gas_used: u64, #[serde(with = "crate::serde::as_string")] - pub excess_data_gas: u64, + pub excess_blob_gas: u64, } impl< @@ -121,8 +121,8 @@ impl< block_hash: payload.block_hash.clone(), transactions_root, withdrawals_root, - data_gas_used: payload.data_gas_used, - excess_data_gas: payload.excess_data_gas, + blob_gas_used: payload.blob_gas_used, + excess_blob_gas: payload.excess_blob_gas, }) } }