Skip to content

Commit f11e89e

Browse files
authored
chore: Bump reth to v1.9.0 - release v0.1.16 (#177)
* chore: Bump reth to v1.9.0 - release v0.1.16 * Running just fix * Cargo clippy fixes * Fmt fixes
1 parent b8966e0 commit f11e89e

File tree

17 files changed

+2281
-1611
lines changed

17 files changed

+2281
-1611
lines changed

Cargo.lock

Lines changed: 2027 additions & 1395 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[workspace.package]
2-
version = "0.1.15"
3-
edition = "2021"
4-
rust-version = "1.85"
2+
version = "0.1.16"
3+
edition = "2024"
4+
rust-version = "1.88"
55
license = "MIT"
66
homepage = "https://github.com/base/node-reth"
77
repository = "https://github.com/base/node-reth"
@@ -48,34 +48,34 @@ base-reth-transaction-tracing = { path = "crates/transaction-tracing" }
4848
tips-core = { git = "https://github.com/base/tips", rev = "27674ae051a86033ece61ae24434aeacdb28ce73", default-features = false }
4949

5050
# reth
51-
reth = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }
52-
reth-optimism-node = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }
53-
reth-optimism-cli = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }
54-
reth-primitives = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }
55-
reth-rpc-eth-api = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }
56-
reth-optimism-primitives = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }
57-
reth-rpc-convert = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }
58-
reth-optimism-rpc = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }
59-
reth-optimism-evm = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }
60-
reth-optimism-chainspec = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }
61-
reth-provider = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }
62-
reth-tracing = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }
63-
reth-e2e-test-utils = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }
64-
reth-transaction-pool = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }
65-
reth-primitives-traits = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }
66-
reth-evm = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }
67-
reth-cli-util = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }
68-
reth-exex = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }
69-
reth-db = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }
70-
reth-testing-utils = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }
71-
reth-db-common = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.2" }
51+
reth = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
52+
reth-optimism-node = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
53+
reth-optimism-cli = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
54+
reth-primitives = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
55+
reth-rpc-eth-api = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
56+
reth-optimism-primitives = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
57+
reth-rpc-convert = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
58+
reth-optimism-rpc = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
59+
reth-optimism-evm = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
60+
reth-optimism-chainspec = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
61+
reth-provider = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
62+
reth-tracing = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
63+
reth-e2e-test-utils = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
64+
reth-transaction-pool = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
65+
reth-primitives-traits = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
66+
reth-evm = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
67+
reth-cli-util = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
68+
reth-exex = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
69+
reth-db = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
70+
reth-testing-utils = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
71+
reth-db-common = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.0" }
7272

7373
# revm
74-
revm = { version = "29.0.0", default-features = false }
75-
revm-bytecode = { version = "6.2.2", default-features = false }
74+
revm = { version = "31.0.0", default-features = false }
75+
revm-bytecode = { version = "7.1.0", default-features = false }
7676

7777
# alloy
78-
alloy-primitives = { version = "1.3.1", default-features = false, features = [
78+
alloy-primitives = { version = "1.4.1", default-features = false, features = [
7979
"map-foldhash",
8080
] }
8181
alloy-genesis = { version = "1.0.41", default-features = false }
@@ -86,16 +86,16 @@ alloy-rpc-types-eth = { version = "1.0.41" }
8686
alloy-consensus = { version = "1.0.41" }
8787
alloy-trie = { version = "0.9.1", default-features = false }
8888
alloy-provider = { version = "1.0.41" }
89-
alloy-hardforks = "0.3.5"
89+
alloy-hardforks = "0.4.4"
9090
alloy-rpc-client = { version = "1.0.41" }
9191
alloy-serde = { version = "1.0.41" }
9292

9393
# op-alloy
94-
op-alloy-rpc-types = { version = "0.20.0", default-features = false }
95-
op-alloy-rpc-types-engine = { version = "0.20.0", default-features = false }
96-
op-alloy-rpc-jsonrpsee = { version = "0.20.0", default-features = false }
97-
op-alloy-network = { version = "0.20.0", default-features = false }
98-
op-alloy-consensus = { version = "0.20.0", default-features = false }
94+
op-alloy-rpc-types = { version = "0.22.0", default-features = false }
95+
op-alloy-rpc-types-engine = { version = "0.22.0", default-features = false }
96+
op-alloy-rpc-jsonrpsee = { version = "0.22.0", default-features = false }
97+
op-alloy-network = { version = "0.22.0", default-features = false }
98+
op-alloy-consensus = { version = "0.22.0", default-features = false }
9999

100100
# rollup-boost
101101
rollup-boost = { git = "http://github.com/flashbots/rollup-boost", tag = "rollup-boost/v0.7.5" }

crates/flashblocks-rpc/src/pending_blocks.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
use alloy_consensus::{Header, Sealed};
22
use alloy_eips::BlockNumberOrTag;
33
use alloy_primitives::{
4+
Address, B256, BlockNumber, TxHash, U256,
45
map::foldhash::{HashMap, HashMapExt},
5-
Address, BlockNumber, TxHash, B256, U256,
66
};
77
use alloy_provider::network::TransactionResponse;
8-
use alloy_rpc_types::{state::StateOverride, BlockTransactions};
8+
use alloy_rpc_types::{BlockTransactions, state::StateOverride};
99
use alloy_rpc_types_eth::{Filter, Header as RPCHeader, Log};
1010
use eyre::eyre;
1111
use op_alloy_network::Optimism;

crates/flashblocks-rpc/src/rpc.rs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ use crate::pending_blocks::PendingBlocks;
66
use alloy_eips::{BlockId, BlockNumberOrTag};
77
use alloy_primitives::map::foldhash::{HashSet, HashSetExt};
88
use alloy_primitives::{Address, TxHash, U256};
9+
use alloy_rpc_types::BlockOverrides;
910
use alloy_rpc_types::simulate::{SimBlock, SimulatePayload, SimulatedBlock};
1011
use alloy_rpc_types::state::{EvmOverrides, StateOverride, StateOverridesBuilder};
11-
use alloy_rpc_types::BlockOverrides;
1212
use alloy_rpc_types_eth::{Filter, Log};
1313
use arc_swap::Guard;
1414
use jsonrpsee::{
15-
core::{async_trait, RpcResult},
15+
core::{RpcResult, async_trait},
1616
proc_macros::rpc,
1717
};
18-
use jsonrpsee_types::error::INVALID_PARAMS_CODE;
1918
use jsonrpsee_types::ErrorObjectOwned;
19+
use jsonrpsee_types::error::INVALID_PARAMS_CODE;
2020
use op_alloy_network::Optimism;
2121
use op_alloy_rpc_types::OpTransactionRequest;
2222
use reth::providers::CanonStateSubscriptions;
@@ -25,13 +25,13 @@ use reth::rpc::server_types::eth::EthApiError;
2525
use reth_rpc_eth_api::helpers::EthState;
2626
use reth_rpc_eth_api::helpers::EthTransactions;
2727
use reth_rpc_eth_api::helpers::{EthBlocks, EthCall};
28-
use reth_rpc_eth_api::{helpers::FullEthApi, EthApiTypes, EthFilterApiServer, RpcBlock};
28+
use reth_rpc_eth_api::{EthApiTypes, EthFilterApiServer, RpcBlock, helpers::FullEthApi};
2929
use reth_rpc_eth_api::{RpcReceipt, RpcTransaction};
3030
use tokio::sync::broadcast;
3131
use tokio::sync::broadcast::error::RecvError;
3232
use tokio::time;
33-
use tokio_stream::wrappers::BroadcastStream;
3433
use tokio_stream::StreamExt;
34+
use tokio_stream::wrappers::BroadcastStream;
3535
use tracing::{debug, trace, warn};
3636

3737
/// Max configured timeout for `eth_sendRawTransactionSync` in milliseconds.
@@ -89,7 +89,7 @@ pub trait EthApiOverride {
8989

9090
#[method(name = "getBalance")]
9191
async fn get_balance(&self, address: Address, block_number: Option<BlockId>)
92-
-> RpcResult<U256>;
92+
-> RpcResult<U256>;
9393

9494
#[method(name = "getTransactionCount")]
9595
async fn get_transaction_count(
@@ -292,10 +292,12 @@ where
292292
Some(ms) if ms > MAX_TIMEOUT_SEND_RAW_TX_SYNC_MS => {
293293
return Err(ErrorObjectOwned::owned(
294294
INVALID_PARAMS_CODE,
295-
format!("time out too long, timeout: {ms} ms, max: {MAX_TIMEOUT_SEND_RAW_TX_SYNC_MS} ms"),
295+
format!(
296+
"time out too long, timeout: {ms} ms, max: {MAX_TIMEOUT_SEND_RAW_TX_SYNC_MS} ms"
297+
),
296298
None::<()>,
297-
))
298-
},
299+
));
300+
}
299301
Some(ms) => ms,
300302
_ => MAX_TIMEOUT_SEND_RAW_TX_SYNC_MS,
301303
};

crates/flashblocks-rpc/src/state.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use alloy_consensus::transaction::{Recovered, SignerRecoverable, TransactionMeta
66
use alloy_consensus::{Header, TxReceipt};
77
use alloy_eips::BlockNumberOrTag;
88
use alloy_primitives::map::foldhash::HashMap;
9-
use alloy_primitives::{Address, BlockNumber, Bytes, Sealable, B256, U256};
9+
use alloy_primitives::{Address, B256, BlockNumber, Bytes, Sealable, U256};
1010
use alloy_rpc_types::{TransactionTrait, Withdrawal};
1111
use alloy_rpc_types_engine::{ExecutionPayloadV1, ExecutionPayloadV2, ExecutionPayloadV3};
1212
use alloy_rpc_types_eth::state::StateOverride;
@@ -28,14 +28,14 @@ use reth_optimism_evm::{OpEvmConfig, OpNextBlockEnvAttributes};
2828
use reth_optimism_primitives::{DepositReceipt, OpBlock, OpPrimitives};
2929
use reth_optimism_rpc::OpReceiptBuilder;
3030
use reth_primitives::RecoveredBlock;
31-
use reth_rpc_convert::{transaction::ConvertReceiptInput, RpcTransaction};
31+
use reth_rpc_convert::{RpcTransaction, transaction::ConvertReceiptInput};
3232
use reth_rpc_eth_api::{RpcBlock, RpcReceipt};
3333
use std::collections::{BTreeMap, HashSet};
3434
use std::sync::Arc;
3535
use std::time::Instant;
36+
use tokio::sync::Mutex;
3637
use tokio::sync::broadcast::{self, Sender};
3738
use tokio::sync::mpsc::{self, UnboundedReceiver};
38-
use tokio::sync::Mutex;
3939
use tracing::{debug, error, info, warn};
4040

4141
// Buffer 4s of flashblocks for flashblock_sender

crates/flashblocks-rpc/src/subscription.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,10 @@ fn try_decode_message(bytes: &[u8]) -> eyre::Result<Flashblock> {
229229
}
230230

231231
fn try_parse_message(bytes: &[u8]) -> eyre::Result<String> {
232-
if let Ok(text) = String::from_utf8(bytes.to_vec()) {
233-
if text.trim_start().starts_with("{") {
234-
return Ok(text);
235-
}
232+
if let Ok(text) = String::from_utf8(bytes.to_vec())
233+
&& text.trim_start().starts_with("{")
234+
{
235+
return Ok(text);
236236
}
237237

238238
let mut decompressor = brotli::Decompressor::new(bytes, 4096);
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
use alloy_primitives::{b256, bytes, Bytes, B256};
1+
use alloy_primitives::{B256, Bytes, b256, bytes};
22

33
mod rpc;
44
mod state;
55
mod utils;
66

7-
const BLOCK_INFO_TXN: Bytes = bytes!("0x7ef90104a06c0c775b6b492bab9d7e81abdf27f77cafb698551226455a82f559e0f93fea3794deaddeaddeaddeaddeaddeaddeaddeaddead00019442000000000000000000000000000000000000158080830f424080b8b0098999be000008dd00101c1200000000000000020000000068869d6300000000015f277f000000000000000000000000000000000000000000000000000000000d42ac290000000000000000000000000000000000000000000000000000000000000001abf52777e63959936b1bf633a2a643f0da38d63deffe49452fed1bf8a44975d50000000000000000000000005050f69a9786f081509234f1a7f4684b5e5b76c9000000000000000000000000");
7+
const BLOCK_INFO_TXN: Bytes = bytes!(
8+
"0x7ef90104a06c0c775b6b492bab9d7e81abdf27f77cafb698551226455a82f559e0f93fea3794deaddeaddeaddeaddeaddeaddeaddeaddead00019442000000000000000000000000000000000000158080830f424080b8b0098999be000008dd00101c1200000000000000020000000068869d6300000000015f277f000000000000000000000000000000000000000000000000000000000d42ac290000000000000000000000000000000000000000000000000000000000000001abf52777e63959936b1bf633a2a643f0da38d63deffe49452fed1bf8a44975d50000000000000000000000005050f69a9786f081509234f1a7f4684b5e5b76c9000000000000000000000000"
9+
);
810
const BLOCK_INFO_TXN_HASH: B256 =
911
b256!("0xba56c8b0deb460ff070f8fca8e2ee01e51a3db27841cc862fdd94cc1a47662b6");

0 commit comments

Comments
 (0)