Skip to content

Commit 1ff3ba4

Browse files
prestwichclaude
andcommitted
fix(node): add missing reth-stages-types dep and fix mutability
The `reth_stages_types` crate was used but not declared as a dependency, and `set_backfill_thresholds` needed `&mut self` to mutate notifications. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a46bfca commit 1ff3ba4

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

crates/node/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ reth-db.workspace = true
2727
reth-db-common.workspace = true
2828
reth-exex.workspace = true
2929
reth-node-api.workspace = true
30+
reth-stages-types.workspace = true
3031

3132
eyre.workspace = true
3233
futures-util.workspace = true

crates/node/src/node.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ use reth::{
1717
};
1818
use reth_chainspec::EthChainSpec;
1919
use reth_exex::{ExExContext, ExExEvent, ExExHead, ExExNotificationsStream};
20-
use reth_stages_types::ExecutionStageThresholds;
2120
use reth_node_api::{FullNodeComponents, FullNodeTypes, NodeTypes};
21+
use reth_stages_types::ExecutionStageThresholds;
2222
use signet_blobber::BlobFetcher;
2323
use signet_block_processor::{AliasOracleFactory, SignetBlockProcessorV1};
2424
use signet_db::{DbProviderExt, ProviderConsistencyExt, RuChain, RuWriter};
@@ -298,7 +298,7 @@ where
298298
/// Sets backfill thresholds to limit memory usage during sync.
299299
/// This should be called after `set_with_head` to configure how many
300300
/// blocks can be processed per backfill batch.
301-
fn set_backfill_thresholds(&self) {
301+
fn set_backfill_thresholds(&mut self) {
302302
if let Some(max_blocks) = self.config.backfill_max_blocks() {
303303
self.host.notifications.set_backfill_thresholds(ExecutionStageThresholds {
304304
max_blocks: Some(max_blocks),

0 commit comments

Comments
 (0)