mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: integrate blob_params_at_timestamp (#14128)
This commit is contained in:
@ -411,17 +411,6 @@ impl ChainSpec {
|
||||
}
|
||||
}
|
||||
|
||||
/// Get the [`BlobParams`] for the given timestamp.
|
||||
///
|
||||
/// Note: This always return [`BlobParams::cancun`] pre prague.
|
||||
pub fn blob_fee_params_at_timestamp(&self, timestamp: u64) -> BlobParams {
|
||||
if self.is_prague_active_at_timestamp(timestamp) {
|
||||
self.blob_params.prague
|
||||
} else {
|
||||
self.blob_params.cancun
|
||||
}
|
||||
}
|
||||
|
||||
/// Get the hash of the genesis block.
|
||||
pub fn genesis_hash(&self) -> B256 {
|
||||
*self.genesis_hash.get_or_init(|| self.genesis_header().hash_slow())
|
||||
|
||||
Reference in New Issue
Block a user