mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
chore: rename gas to gas_used in the node logs (#17767)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user