mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(stages): bodies & TD progress (#3010)
This commit is contained in:
@ -4,7 +4,7 @@ use crate::{
|
||||
header::Head,
|
||||
proofs::genesis_state_root,
|
||||
BlockNumber, Chain, ForkFilter, ForkHash, ForkId, Genesis, GenesisAccount, Hardfork, Header,
|
||||
H160, H256, U256,
|
||||
SealedHeader, H160, H256, U256,
|
||||
};
|
||||
use ethers_core::utils::Genesis as EthersGenesis;
|
||||
use hex_literal::hex;
|
||||
@ -193,6 +193,11 @@ impl ChainSpec {
|
||||
}
|
||||
}
|
||||
|
||||
/// Get the sealed header for the genesis block.
|
||||
pub fn sealed_genesis_header(&self) -> SealedHeader {
|
||||
SealedHeader { header: self.genesis_header(), hash: self.genesis_hash() }
|
||||
}
|
||||
|
||||
/// Get the initial base fee of the genesis block.
|
||||
pub fn initial_base_fee(&self) -> Option<u64> {
|
||||
// If London is activated at genesis, we set the initial base fee as per EIP-1559.
|
||||
|
||||
Reference in New Issue
Block a user