mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-28 08:37:59 -05:00
feat(txpool): activate osaka in tx validator (#16371)
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user