feat: add method to check prague active at timestamp (#10020)

This commit is contained in:
Miguel Tavares
2024-08-02 09:54:28 -03:00
committed by GitHub
parent d7f9a255e1
commit f395ff8935

View File

@ -45,6 +45,12 @@ impl ExecutionPayloadValidator {
self.chain_spec().is_shanghai_active_at_timestamp(timestamp)
}
/// Returns true if the Prague harkdfork is active at the given timestamp.
#[inline]
fn _is_prague_active_at_timestamp(&self, timestamp: u64) -> bool {
self.chain_spec().is_prague_active_at_timestamp(timestamp)
}
/// Cancun specific checks for EIP-4844 blob transactions.
///
/// Ensures that the number of blob versioned hashes matches the number hashes included in the