pub trait Cfg {
type Spec: Into<SpecId>;
// Required methods
fn chain_id(&self) -> u64;
fn spec(&self) -> Self::Spec;
fn blob_max_count(&self, spec_id: SpecId) -> u8;
fn max_code_size(&self) -> usize;
fn is_eip3607_disabled(&self) -> bool;
fn is_balance_check_disabled(&self) -> bool;
fn is_gas_refund_disabled(&self) -> bool;
fn is_block_gas_limit_disabled(&self) -> bool;
fn is_nonce_check_disabled(&self) -> bool;
fn is_base_fee_check_disabled(&self) -> bool;
}
Required Associated Types§
Required Methods§
fn chain_id(&self) -> u64
fn spec(&self) -> Self::Spec
Sourcefn blob_max_count(&self, spec_id: SpecId) -> u8
fn blob_max_count(&self, spec_id: SpecId) -> u8
Returns the blob target and max count for the given spec id.
EIP-7840: Add blob schedule to execution client configuration files