feat(txpool): activate osaka in tx validator (#16371)

This commit is contained in:
Roman Krasiuk
2025-05-20 17:24:59 +02:00
committed by GitHub
parent 5c03c1e717
commit 3f8b3f8a1f

View File

@@ -659,18 +659,22 @@ where
fn on_new_head_block<T: BlockHeader>(&self, new_tip_block: &T) {
// update all forks
if self.chain_spec().is_cancun_active_at_timestamp(new_tip_block.timestamp()) {
self.fork_tracker.cancun.store(true, std::sync::atomic::Ordering::Relaxed);
}
if self.chain_spec().is_shanghai_active_at_timestamp(new_tip_block.timestamp()) {
self.fork_tracker.shanghai.store(true, std::sync::atomic::Ordering::Relaxed);
}
if self.chain_spec().is_cancun_active_at_timestamp(new_tip_block.timestamp()) {
self.fork_tracker.cancun.store(true, std::sync::atomic::Ordering::Relaxed);
}
if self.chain_spec().is_prague_active_at_timestamp(new_tip_block.timestamp()) {
self.fork_tracker.prague.store(true, std::sync::atomic::Ordering::Relaxed);
}
if self.chain_spec().is_osaka_active_at_timestamp(new_tip_block.timestamp()) {
self.fork_tracker.osaka.store(true, std::sync::atomic::Ordering::Relaxed);
}
if let Some(blob_params) =
self.chain_spec().blob_params_at_timestamp(new_tip_block.timestamp())
{