Skip to content

Commit 4e9485a

Browse files
authored
feat(deps): bump reth & related deps to 1.8.1 release spec (#37)
* feat(deps): bump reth & related deps to 1.8.1 release spec * fixup more stuff * chore: bump deps * fix: increment target block on take/remove * fix(db): properly increment target for `above_` methods * rm unnecessary clone
1 parent b91f3b5 commit 4e9485a

File tree

8 files changed

+72
-71
lines changed

8 files changed

+72
-71
lines changed

Cargo.toml

Lines changed: 37 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["crates/*"]
33
resolver = "2"
44

55
[workspace.package]
6-
version = "0.10.4"
6+
version = "0.11.0"
77
edition = "2024"
88
rust-version = "1.88"
99
authors = ["init4"]
@@ -34,57 +34,56 @@ debug = false
3434
incremental = false
3535

3636
[workspace.dependencies]
37-
signet-blobber = { version = "0.10", path = "crates/blobber" }
38-
signet-block-processor = { version = "0.10", path = "crates/block-processor" }
39-
signet-db = { version = "0.10", path = "crates/db" }
40-
signet-node-types = { version = "0.10", path = "crates/node-types" }
41-
signet-rpc = { version = "0.10", path = "crates/rpc" }
42-
43-
init4-bin-base = { version = "0.11.0", features = ["alloy"] }
44-
45-
signet-bundle = "0.10.1"
46-
signet-constants = "0.10.1"
47-
signet-evm = "0.10.1"
48-
signet-extract = "0.10.1"
49-
signet-journal = "0.10.1"
50-
signet-tx-cache = "0.10.1"
51-
signet-types = "0.10.1"
52-
signet-zenith = "0.10.1"
37+
signet-blobber = { version = "0.11", path = "crates/blobber" }
38+
signet-block-processor = { version = "0.11", path = "crates/block-processor" }
39+
signet-db = { version = "0.11", path = "crates/db" }
40+
signet-node-types = { version = "0.11", path = "crates/node-types" }
41+
signet-rpc = { version = "0.11", path = "crates/rpc" }
42+
43+
init4-bin-base = { version = "0.13.1", features = ["alloy"] }
44+
45+
signet-bundle = "0.11.1"
46+
signet-constants = "0.11.1"
47+
signet-evm = "0.11.1"
48+
signet-extract = "0.11.1"
49+
signet-tx-cache = "0.11.1"
50+
signet-types = "0.11.1"
51+
signet-zenith = "0.11.1"
52+
signet-journal = "0.11.1"
5353

5454
# ajj
5555
ajj = { version = "0.3.4" }
5656

5757
# trevm
58-
trevm = { version = "0.27.8", features = ["full_env_cfg"] }
58+
trevm = { version = "0.29.0", features = ["full_env_cfg"] }
5959

6060
# Alloy periphery crates
61-
alloy = { version = "1.0.25", features = [
61+
alloy = { version = "1.0.35", features = [
6262
"full",
6363
"rpc-types-beacon",
6464
"rpc-types-mev",
6565
"genesis",
6666
"arbitrary",
6767
] }
68-
alloy-contract = { version = "1.0.25", features = ["pubsub"] }
68+
alloy-contract = { version = "1.0.35", features = ["pubsub"] }
6969

7070
# Reth
71-
reth = { git = "https://github.com/paradigmxyz/reth", tag = "v1.6.0" }
72-
reth-ethereum = { git = "https://github.com/paradigmxyz/reth", tag = "v1.6.0" }
73-
reth-chainspec = { git = "https://github.com/paradigmxyz/reth", tag = "v1.6.0" }
74-
reth-db = { git = "https://github.com/paradigmxyz/reth", tag = "v1.6.0" }
75-
reth-db-common = { git = "https://github.com/paradigmxyz/reth", tag = "v1.6.0" }
76-
reth-eth-wire-types = { git = "https://github.com/paradigmxyz/reth", tag = "v1.6.0" }
77-
reth-evm-ethereum = { git = "https://github.com/paradigmxyz/reth", tag = "v1.6.0" }
78-
reth-exex = { git = "https://github.com/paradigmxyz/reth", tag = "v1.6.0" }
79-
reth-exex-test-utils = { git = "https://github.com/paradigmxyz/reth", tag = "v1.6.0" }
80-
reth-network-api = { git = "https://github.com/paradigmxyz/reth", tag = "v1.6.0" }
81-
reth-network-peers = { git = "https://github.com/paradigmxyz/reth", tag = "v1.6.0" }
82-
reth-node-api = { git = "https://github.com/paradigmxyz/reth", tag = "v1.6.0" }
83-
reth-node-ethereum = { git = "https://github.com/paradigmxyz/reth", tag = "v1.6.0" }
84-
reth-prune-types = { git = "https://github.com/paradigmxyz/reth", tag = "v1.6.0" }
85-
reth-rpc-eth-api = { git = "https://github.com/paradigmxyz/reth", tag = "v1.6.0" }
86-
reth-transaction-pool = { git = "https://github.com/paradigmxyz/reth", tag = "v1.6.0" }
87-
reth-trie-db = { git = "https://github.com/paradigmxyz/reth", tag = "v1.6.0" }
71+
reth = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.1" }
72+
reth-ethereum = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.1" }
73+
reth-chainspec = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.1" }
74+
reth-db = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.1" }
75+
reth-db-common = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.1" }
76+
reth-eth-wire-types = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.1" }
77+
reth-evm-ethereum = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.1" }
78+
reth-exex = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.1" }
79+
reth-exex-test-utils = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.1" }
80+
reth-network-api = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.1" }
81+
reth-network-peers = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.1" }
82+
reth-node-api = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.1" }
83+
reth-node-ethereum = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.1" }
84+
reth-prune-types = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.1" }
85+
reth-rpc-eth-api = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.1" }
86+
reth-transaction-pool = { git = "https://github.com/paradigmxyz/reth", tag = "v1.8.1" }
8887

8988
# Foundry periphery
9089
foundry-blob-explorers = "0.17"
@@ -129,4 +128,4 @@ tempfile = "3.17.0"
129128
# signet-types = { path = "../sdk/crates/types"}
130129
# signet-zenith = { path = "../sdk/crates/zenith"}
131130

132-
# init4-bin-base = { path = "../shared" }
131+
# init4-bin-base = { path = "../shared" }

crates/db/src/provider.rs

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,16 @@ where
151151
// in `reth/crates/storage/provider/src/providers/database/provider.rs`
152152
// duration metrics have been removed
153153
//
154-
// Last reviewed at tag v1.5.1
154+
// Last reviewed at tag v1.8.1
155155
let block_number = block.number();
156+
157+
// SIGNET-SPECIFIC
158+
// Put journal hash into the DB
156159
if let Some(header) = header {
157160
self.insert_signet_header(header, block_number)?;
158161
}
159162

163+
// SIGNET-SPECIFIC
160164
// Put journal hash into the DB
161165
self.tx_ref().put::<crate::JournalHashes>(block_number, journal_hash)?;
162166

@@ -226,7 +230,7 @@ where
226230
// duration metrics have been removed, and the implementation has been
227231
// modified to work with a single signet block.
228232
//
229-
// last reviewed at tag v1.5.1
233+
// last reviewed at tag v1.8.1
230234

231235
let sf = self.static_file_provider();
232236

@@ -333,7 +337,7 @@ where
333337
let mut items = Vec::new();
334338
trace!(target: "signet_db_lifecycle", "taking zenith headers");
335339
let mut cursor_write = self.tx_ref().cursor_write::<ZenithHeaders>()?;
336-
let mut walker = cursor_write.walk_range(target..)?;
340+
let mut walker = cursor_write.walk_range(target + 1..)?;
337341
while let Some((k, DbZenithHeader(e))) = walker.next().transpose()? {
338342
walker.delete_current()?;
339343
items.push((k, e))
@@ -348,7 +352,7 @@ where
348352
target: BlockNumber,
349353
_remove_from: StorageLocation,
350354
) -> ProviderResult<()> {
351-
self.remove::<ZenithHeaders>(target..)?;
355+
self.remove::<ZenithHeaders>(target + 1..)?;
352356
Ok(())
353357
}
354358

@@ -371,7 +375,7 @@ where
371375
target: BlockNumber,
372376
remove_from: StorageLocation,
373377
) -> ProviderResult<Vec<(BlockNumber, DbSignetEvent)>> {
374-
let range = target..=(1 + self.last_block_number()?);
378+
let range = target + 1..=self.last_block_number()?;
375379
let items = self.get_signet_events(range)?;
376380
self.remove_signet_events_above(target, remove_from)?;
377381
Ok(items)
@@ -386,7 +390,7 @@ where
386390
target: BlockNumber,
387391
_remove_from: StorageLocation,
388392
) -> ProviderResult<()> {
389-
self.remove::<SignetEvents>(target..)?;
393+
self.remove::<SignetEvents>(target + 1..)?;
390394
Ok(())
391395
}
392396

@@ -415,7 +419,7 @@ where
415419
// in `reth/crates/storage/provider/src/providers/database/provider.rs`
416420
// duration metrics have been removed
417421
//
418-
// last reviewed at tag v1.5.1
422+
// last reviewed at tag v1.8.1
419423

420424
let BlockResult { sealed_block: block, execution_outcome, .. } = block_result;
421425

@@ -467,13 +471,13 @@ where
467471
// `BlockExecutionWriter::take_block_and_execution_above`
468472
// in `reth/crates/storage/provider/src/providers/database/provider.rs`
469473
//
470-
// last reviewed at tag v1.5.1
474+
// last reviewed at tag v1.8.1
471475

472-
let range = target..=self.last_block_number()?;
476+
let range = target + 1..=self.last_block_number()?;
473477

474478
// This block is copied from `unwind_trie_state_range`
475479
//
476-
// last reviewed at tag v1.5.1
480+
// last reviewed at tag v1.8.1
477481
{
478482
let changed_accounts = self
479483
.tx_ref()
@@ -537,21 +541,21 @@ where
537541
#[instrument(skip(self))]
538542
fn ru_remove_blocks_and_execution_above(
539543
&self,
540-
target: BlockNumber,
544+
block: BlockNumber,
541545
remove_from: StorageLocation,
542546
) -> ProviderResult<()> {
543547
// Implementation largely copied from
544548
// `BlockExecutionWriter::remove_block_and_execution_above`
545549
// in `reth/crates/storage/provider/src/providers/database/provider.rs`
546550
// duration metrics have been removed
547551
//
548-
// last reviewed at tag v1.5.1
552+
// last reviewed at tag v1.8.1
549553

550554
// This block is copied from `unwind_trie_state_range`
551555
//
552-
// last reviewed at tag v1.5.1
556+
// last reviewed at tag v1.8.1
553557
{
554-
let range = target..=self.last_block_number()?;
558+
let range = block + 1..=self.last_block_number()?;
555559
let changed_accounts = self
556560
.tx_ref()
557561
.cursor_read::<tables::AccountChangeSets>()?
@@ -572,14 +576,14 @@ where
572576
self.unwind_storage_history_indices(changed_storages.iter().copied())?;
573577
}
574578

575-
self.remove_state_above(target, remove_from)?;
576-
self.remove_blocks_above(target, remove_from)?;
579+
self.remove_state_above(block, remove_from)?;
580+
self.remove_blocks_above(block, remove_from)?;
577581

578582
// Signet specific:
579-
self.remove_extraction_results_above(target, remove_from)?;
583+
self.remove_extraction_results_above(block, remove_from)?;
580584

581585
// Update pipeline stages
582-
self.update_pipeline_stages(target, true)?;
586+
self.update_pipeline_stages(block, true)?;
583587

584588
Ok(())
585589
}
@@ -594,7 +598,7 @@ where
594598
// `StateWriter::write_state` for `DatabaseProvider`
595599
// in `reth/crates/storage/provider/src/providers/database/provider.rs`
596600
//
597-
// Last reviewed at tag v1.5.1
601+
// Last reviewed at tag v1.8.1
598602
let first_block = execution_outcome.first_block();
599603
let block_count = execution_outcome.len() as u64;
600604
let last_block = execution_outcome.last_block();

crates/node-types/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@ reth-chainspec.workspace = true
1414
reth-db.workspace = true
1515
reth-node-api.workspace = true
1616
reth-node-ethereum.workspace = true
17-
reth-trie-db.workspace = true
1817

1918
tokio.workspace = true

crates/node-types/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ use reth::{
2424
use reth_chainspec::ChainSpec;
2525
use reth_node_api::{NodePrimitives, NodeTypes, NodeTypesWithDB};
2626
use reth_node_ethereum::EthEngineTypes;
27-
use reth_trie_db::MerklePatriciaTrie;
2827
use std::marker::PhantomData;
2928
use tokio::sync::broadcast::error::SendError;
3029

@@ -85,8 +84,6 @@ where
8584

8685
type ChainSpec = ChainSpec;
8786

88-
type StateCommitment = MerklePatriciaTrie;
89-
9087
type Storage = EthStorage;
9188

9289
type Payload = EthEngineTypes;

crates/rpc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ tracing.workspace = true
4242
serde_json.workspace = true
4343
futures-util = "0.3.31"
4444
itertools.workspace = true
45-
revm-inspectors = "0.26.5"
45+
revm-inspectors = "0.30.0"
4646
signet-db.workspace = true
4747

4848
[dev-dependencies]

crates/rpc/examples/filler.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ where
137137
replacement_uuid: None, // optional if implementing strategies that replace or cancel bundles
138138
..Default::default() // all other options are not used.
139139
},
140+
host_txs: vec![],
140141
};
141142

142143
// submit the Bundle to the transaction cache

crates/rpc/src/ctx/full.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,12 @@ where
185185
where
186186
Tasks: TaskSpawner + Clone + 'static,
187187
{
188+
let tracing_semaphores = Semaphore::new(eth_config.max_tracing_requests).into();
189+
188190
SignetCtx::new(constants, provider, eth_config, tx_cache, spawner).map(|signet| Self {
189191
host,
190192
signet,
191-
shared: SharedContext {
192-
tracing_semaphores: Semaphore::new(eth_config.max_tracing_requests).into(),
193-
},
193+
shared: SharedContext { tracing_semaphores },
194194
})
195195
}
196196

crates/rpc/src/receipts.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
//! Signet RPC receipt response builder.
22
3-
use alloy::consensus::Transaction;
4-
use alloy::consensus::{ReceiptEnvelope, TxReceipt, transaction::TransactionMeta};
5-
use alloy::primitives::{Address, TxKind};
6-
use alloy::rpc::types::eth::{Log, ReceiptWithBloom, TransactionReceipt};
7-
use reth::core::primitives::SignerRecoverable;
8-
use reth::primitives::{Receipt, TransactionSigned, TxType};
3+
use alloy::{
4+
consensus::{ReceiptEnvelope, Transaction, TxReceipt, transaction::TransactionMeta},
5+
primitives::{Address, TxKind},
6+
rpc::types::eth::{Log, ReceiptWithBloom, TransactionReceipt},
7+
};
8+
use reth::primitives::{Receipt, TransactionSigned};
99
use reth::rpc::server_types::eth::{EthApiError, EthResult};
10+
use reth::{core::primitives::SignerRecoverable, primitives::TxType};
1011
use signet_types::MagicSig;
1112

1213
/// Builds an [`TransactionReceipt`] obtaining the inner receipt envelope from the given closure.

0 commit comments

Comments
 (0)