Skip to content

Commit 74bf4c2

Browse files
committed
chore: bump reth and update everything
1 parent 70e7137 commit 74bf4c2

File tree

6 files changed

+107
-206
lines changed

6 files changed

+107
-206
lines changed

Cargo.toml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -74,22 +74,22 @@ alloy = { version = "1.0.35", features = [
7474
alloy-contract = { version = "1.0.35", features = ["pubsub"] }
7575

7676
# Reth
77-
reth = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.3" }
78-
reth-ethereum = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.3" }
79-
reth-chainspec = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.3" }
80-
reth-db = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.3" }
81-
reth-db-common = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.3" }
82-
reth-eth-wire-types = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.3" }
83-
reth-evm-ethereum = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.3" }
84-
reth-exex = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.3" }
85-
reth-exex-test-utils = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.3" }
86-
reth-network-api = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.3" }
87-
reth-network-peers = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.3" }
88-
reth-node-api = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.3" }
89-
reth-node-ethereum = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.3" }
90-
reth-prune-types = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.3" }
91-
reth-rpc-eth-api = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.3" }
92-
reth-transaction-pool = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.3" }
77+
reth = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
78+
reth-ethereum = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
79+
reth-chainspec = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
80+
reth-db = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
81+
reth-db-common = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
82+
reth-eth-wire-types = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
83+
reth-evm-ethereum = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
84+
reth-exex = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
85+
reth-exex-test-utils = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
86+
reth-network-api = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
87+
reth-network-peers = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
88+
reth-node-api = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
89+
reth-node-ethereum = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
90+
reth-prune-types = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
91+
reth-rpc-eth-api = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
92+
reth-transaction-pool = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
9393

9494
# Foundry periphery
9595
foundry-blob-explorers = "0.17"

crates/block-processor/src/utils.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ use reth_chainspec::EthereumHardforks;
44
/// Equivalent to [`reth_evm_ethereum::revm_spec`], however, always starts at
55
/// [`SpecId::PRAGUE`] and transitions to [`SpecId::OSAKA`].
66
pub fn revm_spec(chain_spec: &reth::chainspec::ChainSpec, timestamp: u64) -> SpecId {
7-
if chain_spec.is_osaka_active_at_timestamp(timestamp) { SpecId::OSAKA } else { SpecId::PRAGUE }
7+
if chain_spec.is_amsterdam_active_at_timestamp(timestamp) {
8+
SpecId::AMSTERDAM
9+
} else if chain_spec.is_osaka_active_at_timestamp(timestamp) {
10+
SpecId::OSAKA
11+
} else {
12+
SpecId::PRAGUE
13+
}
814
}
915

1016
/// This is simply a compile-time assertion to ensure that all SpecIds are
@@ -32,6 +38,7 @@ const fn assert_in_range(spec_id: SpecId) {
3238
| SpecId::SHANGHAI
3339
| SpecId::CANCUN
3440
| SpecId::PRAGUE
35-
| SpecId::OSAKA => {}
41+
| SpecId::OSAKA
42+
| SpecId::AMSTERDAM => {}
3643
}
3744
}

0 commit comments

Comments
 (0)