chore: rename gas to gas_used in the node logs (#17767)

This commit is contained in:
Max Bytefield
2025-08-12 00:37:48 +03:00
committed by GitHub
parent bcbd2d64ce
commit f0bd4c6843

View File

@@ -257,11 +257,11 @@ impl NodeState {
hash=?block.hash(),
peers=self.num_connected_peers(),
txs=block.body().transactions().len(),
gas=%format_gas(block.gas_used()),
gas_used=%format_gas(block.gas_used()),
gas_throughput=%format_gas_throughput(block.gas_used(), elapsed),
gas_limit=%format_gas(block.gas_limit()),
full=%format!("{:.1}%", block.gas_used() as f64 * 100.0 / block.gas_limit() as f64),
base_fee=%format!("{:.2}gwei", block.base_fee_per_gas().unwrap_or(0) as f64 / GWEI_TO_WEI as f64),
base_fee=%format!("{:.2}Gwei", block.base_fee_per_gas().unwrap_or(0) as f64 / GWEI_TO_WEI as f64),
blobs=block.blob_gas_used().unwrap_or(0) / alloy_eips::eip4844::DATA_GAS_PER_BLOB,
excess_blobs=block.excess_blob_gas().unwrap_or(0) / alloy_eips::eip4844::DATA_GAS_PER_BLOB,
?elapsed,