Skip to content

Commit 18e0db6

Browse files
committed
refactor: remove fields on ScrollNode
1 parent e7bb1db commit 18e0db6

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

crates/scroll/node/src/node.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,11 @@ use reth_trie_db::MerklePatriciaTrie;
1616

1717
/// The Scroll node implementation.
1818
#[derive(Clone, Debug, Default)]
19-
pub struct ScrollNode {
20-
/// A bool that represents if the transaction broadcast should be disabled.
21-
pub disable_tx_broadcast: bool,
22-
/// A bool that represents if the transaction receiving should be disabled.
23-
pub disable_tx_receive: bool,
24-
}
19+
pub struct ScrollNode;
2520

2621
impl ScrollNode {
2722
/// Returns a [`ComponentsBuilder`] configured for a regular Ethereum node.
28-
pub fn components<Node>(&self) -> ComponentsBuilder<
23+
pub fn components<Node>() -> ComponentsBuilder<
2924
Node,
3025
ScrollPoolBuilder,
3126
BasicPayloadServiceBuilder<ScrollPayloadBuilderBuilder>,
@@ -74,7 +69,7 @@ where
7469
>;
7570

7671
fn components_builder(&self) -> Self::ComponentsBuilder {
77-
Self::components(self)
72+
Self::components()
7873
}
7974

8075
fn add_ons(&self) -> Self::AddOns {

0 commit comments

Comments
 (0)