fix(tracing): prioritize RUST_LOG and verbosity CLI arg (#6413)

This commit is contained in:
Alexey Shekhirin
2024-02-05 19:42:32 +00:00
committed by GitHub
parent f8a71047d4
commit 6c1263e000
45 changed files with 71 additions and 70 deletions

View File

@ -67,7 +67,7 @@ impl Hardfork {
/// Retrieves the activation block for the specified hardfork on the Ethereum mainnet.
pub fn mainnet_activation_block(&self, chain: Chain) -> Option<u64> {
if chain != Chain::mainnet() {
return None;
return None
}
match self {
Hardfork::Frontier => Some(0),
@ -122,7 +122,7 @@ impl Hardfork {
/// Retrieves the activation timestamp for the specified hardfork on the given chain.
pub fn activation_timestamp(&self, chain: Chain) -> Option<u64> {
if chain != Chain::mainnet() {
return None;
return None
}
self.mainnet_activation_timestamp()
}