refactor: reward calc cleanup (#2075)

This commit is contained in:
Bjerg
2023-04-01 22:22:22 +02:00
committed by GitHub
parent ee81e4f035
commit 7c6c0b41e8
7 changed files with 176 additions and 51 deletions

View File

@ -2,13 +2,6 @@
use reth_primitives::{ChainSpec, Hardfork, Head};
/// Two ethereum worth of wei
pub const WEI_2ETH: u128 = 2000000000000000000u128;
/// Three ethereum worth of wei
pub const WEI_3ETH: u128 = 3000000000000000000u128;
/// Five ethereum worth of wei
pub const WEI_5ETH: u128 = 5000000000000000000u128;
/// return revm_spec from spec configuration.
pub fn revm_spec(chain_spec: &ChainSpec, block: Head) -> revm::primitives::SpecId {
if chain_spec.fork(Hardfork::Shanghai).active_at_head(&block) {