mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: make base fee computation parameters configurable via chain spec (#3992)
This commit is contained in:
@ -134,7 +134,9 @@ impl PayloadBuilderAttributes {
|
||||
prevrandao: Some(self.prev_randao),
|
||||
gas_limit: U256::from(parent.gas_limit),
|
||||
// calculate basefee based on parent block's gas usage
|
||||
basefee: U256::from(parent.next_block_base_fee().unwrap_or_default()),
|
||||
basefee: U256::from(
|
||||
parent.next_block_base_fee(chain_spec.base_fee_params).unwrap_or_default(),
|
||||
),
|
||||
};
|
||||
|
||||
(cfg, block_env)
|
||||
|
||||
Reference in New Issue
Block a user