reth_node_core::primitives

Function gas_spent_by_transactions

pub fn gas_spent_by_transactions<T>(
    receipts: impl IntoIterator<Item = T>,
) -> Vec<(u64, u64)>
where T: Deref<Target = Receipt>,
Expand description

Retrieves gas spent by transactions as a vector of tuples (transaction index, gas used).