feat: integrate blob_params_at_timestamp (#14128)

This commit is contained in:
joshieDo
2025-01-31 18:18:34 +00:00
committed by GitHub
parent 214f3b3b8e
commit d3acdda21b
11 changed files with 55 additions and 58 deletions

View File

@ -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())