Skip to content

Commit

Permalink
Update eth.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
tomg10 committed Aug 16, 2024
1 parent 4d967be commit 9f06076
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/node/api_server/src/web3/namespaces/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -686,12 +686,11 @@ impl EthNamespace {

// DAL method returns fees in DESC order while we need ASC.
base_fee_per_gas.reverse();
// `base_fee_per_gas` for next L2 block cannot be calculated, appending last fee as a placeholder.
base_fee_per_gas.push(*base_fee_per_gas.last().unwrap());

effective_pubdata_price_history.reverse();

let oldest_block = newest_l2_block.0 + 1 - base_fee_per_gas.len() as u32;
// `base_fee_per_gas` for next L2 block cannot be calculated, appending last fee as a placeholder.
base_fee_per_gas.push(*base_fee_per_gas.last().unwrap());
// We do not store gas used ratio for blocks, returns array of zeroes as a placeholder.
let gas_used_ratio = vec![0.0; base_fee_per_gas.len()];
// Effective priority gas price is currently 0.
Expand Down

0 comments on commit 9f06076

Please sign in to comment.