mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: move gas units to primitives constants (#8849)
This commit is contained in:
@ -1,20 +1,10 @@
|
||||
//! Contains various benchmark output formats, either for logging or for
|
||||
//! serialization to / from files.
|
||||
//!
|
||||
//! This also contains common constants for units, for example [GIGAGAS].
|
||||
|
||||
use reth_primitives::constants::gas_units::GIGAGAS;
|
||||
use serde::{ser::SerializeStruct, Serialize};
|
||||
use std::time::Duration;
|
||||
|
||||
/// Represents one Kilogas, or `1_000` gas.
|
||||
const KILOGAS: u64 = 1_000;
|
||||
|
||||
/// Represents one Megagas, or `1_000_000` gas.
|
||||
const MEGAGAS: u64 = KILOGAS * 1_000;
|
||||
|
||||
/// Represents one Gigagas, or `1_000_000_000` gas.
|
||||
const GIGAGAS: u64 = MEGAGAS * 1_000;
|
||||
|
||||
/// This is the suffix for gas output csv files.
|
||||
pub(crate) const GAS_OUTPUT_SUFFIX: &str = "total_gas.csv";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user