mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Refactor Block (#10913)
Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
This commit is contained in:
@ -259,7 +259,7 @@ impl NodeState {
|
||||
number=block.number,
|
||||
hash=?block.hash(),
|
||||
peers=self.num_connected_peers(),
|
||||
txs=block.body.len(),
|
||||
txs=block.body.transactions.len(),
|
||||
gas=%format_gas(block.header.gas_used as u64),
|
||||
gas_throughput=%format_gas_throughput(block.header.gas_used as u64, elapsed),
|
||||
full=%format!("{:.1}%", block.header.gas_used as f64 * 100.0 / block.header.gas_limit as f64),
|
||||
|
||||
Reference in New Issue
Block a user